Remove duplicate check

This commit is contained in:
Dmitry-Me 2017-11-08 00:53:18 +03:00
parent 1985d75442
commit aff993115f
1 changed files with 1 additions and 1 deletions

View File

@ -784,7 +784,7 @@ void CheckIO::checkFormatString(const Token * const tok,
invalidScanfArgTypeError_int(tok, numFormat, specifier, &argInfo, true);
break;
default:
if (argInfo.typeToken->str() != "int" || !argInfo.typeToken->isUnsigned())
if (argInfo.typeToken->str() != "int")
invalidScanfArgTypeError_int(tok, numFormat, specifier, &argInfo, true);
else if (typesMatch(argInfo.typeToken->originalName(), "size_t") ||
typesMatch(argInfo.typeToken->originalName(), "ptrdiff_t") ||