CheckIO: Fix INT_PTR false positive found while checking mpc-hc. Ticket: #5057
This commit is contained in:
parent
5aba841499
commit
022e7a0f0f
|
@ -5569,14 +5569,16 @@ void Tokenizer::simplifyPlatformTypes()
|
|||
tok->isLong(true);
|
||||
tok->str("long");
|
||||
} else if (tok->str() == "HALF_PTR") {
|
||||
tok->originalName(tok->str());
|
||||
if (_settings->platformType == Settings::Win64)
|
||||
tok->str("int");
|
||||
else
|
||||
tok->str("short");
|
||||
} else if (tok->str() == "INT_PTR") {
|
||||
tok->originalName(tok->str());
|
||||
if (_settings->platformType == Settings::Win64) {
|
||||
tok->str("long");
|
||||
tok->insertToken("long");
|
||||
tok->isLong(true);
|
||||
} else {
|
||||
tok->str("int");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue