Added 'char' back where I removed it by mistake.

This commit is contained in:
PKEuS 2012-07-12 01:01:52 -07:00
parent 8dd5270be3
commit 3523f89917
1 changed files with 1 additions and 1 deletions

View File

@ -537,7 +537,7 @@ void CheckIO::checkWrongPrintfScanfArguments()
break; break;
case 'u': case 'u':
if (varTypeTok && isKnownType(variableInfo, varTypeTok) && !variableInfo->isPointer() && !variableInfo->isArray()) { if (varTypeTok && isKnownType(variableInfo, varTypeTok) && !variableInfo->isPointer() && !variableInfo->isArray()) {
if ((!varTypeTok->isUnsigned() || !Token::Match(varTypeTok, "short|long|int|size_t")) && varTypeTok->str() != "bool") if ((!varTypeTok->isUnsigned() || !Token::Match(varTypeTok, "char|short|long|int|size_t")) && varTypeTok->str() != "bool")
invalidPrintfArgTypeError_uint(tok, numFormat, *i); invalidPrintfArgTypeError_uint(tok, numFormat, *i);
} else if (argListTok->type() == Token::eString) } else if (argListTok->type() == Token::eString)
invalidPrintfArgTypeError_uint(tok, numFormat, *i); invalidPrintfArgTypeError_uint(tok, numFormat, *i);