CheckIo: Fixed FIXME
This commit is contained in:
parent
f3622f729c
commit
5c88934431
|
@ -905,6 +905,9 @@ void CheckIO::checkWrongPrintfScanfArguments()
|
||||||
case 'L':
|
case 'L':
|
||||||
if (argInfo.typeToken->str() != "long" || !argInfo.typeToken->isLong())
|
if (argInfo.typeToken->str() != "long" || !argInfo.typeToken->isLong())
|
||||||
invalidScanfArgTypeError_int(tok, numFormat, specifier, &argInfo, true);
|
invalidScanfArgTypeError_int(tok, numFormat, specifier, &argInfo, true);
|
||||||
|
else if (argInfo.typeToken->originalName() == "size_t" ||
|
||||||
|
argInfo.typeToken->originalName() == "uintmax_t")
|
||||||
|
invalidScanfArgTypeError_int(tok, numFormat, specifier, &argInfo, true);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
if (argInfo.typeToken->str() != "int")
|
if (argInfo.typeToken->str() != "int")
|
||||||
|
|
|
@ -1163,7 +1163,7 @@ private:
|
||||||
check(code, true, false, Settings::Win32A);
|
check(code, true, false, Settings::Win32A);
|
||||||
ASSERT_EQUALS(result, errout.str());
|
ASSERT_EQUALS(result, errout.str());
|
||||||
check(code, true, false, Settings::Win64);
|
check(code, true, false, Settings::Win64);
|
||||||
// FIXME ASSERT_EQUALS(result_win64, errout.str());
|
ASSERT_EQUALS(result_win64, errout.str());
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue