1
0
mirror of synced 2025-01-31 12:03:46 +01:00

patterns: Fixed pointer type displaying causing crashes

Fixes #480
This commit is contained in:
WerWolv 2022-03-22 08:19:14 +01:00
parent 5dfa9cf501
commit 47fd5bdc00

View File

@ -31,7 +31,7 @@ namespace hex::pl {
}
[[nodiscard]] std::string getFormattedName() const override {
std::string result = this->getTypeName().empty() ? this->getFormattedName() : this->getTypeName() + "* : ";
std::string result = (this->getTypeName().empty() ? this->m_pointedAt->getTypeName() : this->getTypeName()) + "* : ";
switch (this->getSize()) {
case 1:
result += "u8";