checkio.cpp: Fix forgotten "nonneg" change which breaks build

This commit is contained in:
versat 2019-07-16 09:29:57 +02:00
parent 7a4a9eba4b
commit 4e89b13adf
1 changed files with 1 additions and 1 deletions

View File

@ -1774,7 +1774,7 @@ void CheckIO::invalidScanfArgTypeError_int(const Token* tok, nonneg int numForma
errmsg << ".";
reportError(tok, severity, "invalidScanfArgType_int", errmsg.str(), CWE686, false);
}
void CheckIO::invalidScanfArgTypeError_float(const Token* tok, unsigned int numFormat, const std::string& specifier, const ArgumentInfo* argInfo)
void CheckIO::invalidScanfArgTypeError_float(const Token* tok, nonneg int numFormat, const std::string& specifier, const ArgumentInfo* argInfo)
{
const Severity::SeverityType severity = getSeverity(argInfo);
if (!mSettings->isEnabled(severity))