Added 'char' back where I removed it by mistake.
This commit is contained in:
parent
8dd5270be3
commit
3523f89917
|
@ -537,7 +537,7 @@ void CheckIO::checkWrongPrintfScanfArguments()
|
|||
break;
|
||||
case 'u':
|
||||
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);
|
||||
} else if (argListTok->type() == Token::eString)
|
||||
invalidPrintfArgTypeError_uint(tok, numFormat, *i);
|
||||
|
|
Loading…
Reference in New Issue