Remove duplicate check
This commit is contained in:
parent
1985d75442
commit
aff993115f
|
@ -784,7 +784,7 @@ void CheckIO::checkFormatString(const Token * const tok,
|
||||||
invalidScanfArgTypeError_int(tok, numFormat, specifier, &argInfo, true);
|
invalidScanfArgTypeError_int(tok, numFormat, specifier, &argInfo, true);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
if (argInfo.typeToken->str() != "int" || !argInfo.typeToken->isUnsigned())
|
if (argInfo.typeToken->str() != "int")
|
||||||
invalidScanfArgTypeError_int(tok, numFormat, specifier, &argInfo, true);
|
invalidScanfArgTypeError_int(tok, numFormat, specifier, &argInfo, true);
|
||||||
else if (typesMatch(argInfo.typeToken->originalName(), "size_t") ||
|
else if (typesMatch(argInfo.typeToken->originalName(), "size_t") ||
|
||||||
typesMatch(argInfo.typeToken->originalName(), "ptrdiff_t") ||
|
typesMatch(argInfo.typeToken->originalName(), "ptrdiff_t") ||
|
||||||
|
|
Loading…
Reference in New Issue