From b30ef3d0503d862e7b0faad6196431796191e376 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sun, 14 Jul 2019 17:31:26 +0200 Subject: [PATCH] Fix wrong 'nonneg' --- lib/token.cpp | 2 +- lib/token.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/token.cpp b/lib/token.cpp index 7429921aa..07f38c1ef 100644 --- a/lib/token.cpp +++ b/lib/token.cpp @@ -521,7 +521,7 @@ static int multiComparePercent(const Token *tok, const char*& haystack, nonneg i 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 *needlePointer = needle; diff --git a/lib/token.h b/lib/token.h index dae3341d2..45ce885fa 100644 --- a/lib/token.h +++ b/lib/token.h @@ -616,7 +616,7 @@ public: * 0 if needle was empty string * -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 { return mImpl->mFileIndex;