Fix wrong 'nonneg'

This commit is contained in:
Daniel Marjamäki 2019-07-14 17:31:26 +02:00
parent d2284ddbcd
commit b30ef3d050
2 changed files with 2 additions and 2 deletions

View File

@ -521,7 +521,7 @@ static int multiComparePercent(const Token *tok, const char*& haystack, nonneg i
return 0xFFFF; return 0xFFFF;
} }
nonneg int Token::multiCompare(const Token *tok, const char *haystack, nonneg int varid) int Token::multiCompare(const Token *tok, const char *haystack, nonneg int varid)
{ {
const char *needle = tok->str().c_str(); const char *needle = tok->str().c_str();
const char *needlePointer = needle; const char *needlePointer = needle;

View File

@ -616,7 +616,7 @@ public:
* 0 if needle was empty string * 0 if needle was empty string
* -1 if needle was not found * -1 if needle was not found
*/ */
static nonneg int multiCompare(const Token *tok, const char *haystack, nonneg int varid); static int multiCompare(const Token *tok, const char *haystack, nonneg int varid);
nonneg int fileIndex() const { nonneg int fileIndex() const {
return mImpl->mFileIndex; return mImpl->mFileIndex;