CheckIO: Fix INT_PTR false positive found while checking mpc-hc. Ticket: #5057

This commit is contained in:
Robert Reif 2013-10-02 04:19:04 +02:00 committed by Daniel Marjamäki
parent 5aba841499
commit 022e7a0f0f
1 changed files with 3 additions and 1 deletions

View File

@ -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");
}