aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/scanner/cpp/cpp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/scanner/cpp/cpp.cpp')
-rw-r--r--src/plugins/scanner/cpp/cpp.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/scanner/cpp/cpp.cpp b/src/plugins/scanner/cpp/cpp.cpp
index d29b7789b..8f92f381b 100644
--- a/src/plugins/scanner/cpp/cpp.cpp
+++ b/src/plugins/scanner/cpp/cpp.cpp
@@ -124,9 +124,9 @@ static void scanCppFile(void *opaq, Lexer &yylex, bool scanForFileTags)
yylex(&tk);
if (!scanForFileTags && !tk.newline() && tk.is(T_IDENTIFIER)) {
- if ((tk.length() >= includeLiteral.size()
+ if ((static_cast<int>(tk.length()) >= includeLiteral.size()
&& (strncmp(opaque->fileContent + tk.begin(), includeLiteral.data(), includeLiteral.size()) == 0))
- || (tk.length() >= importLiteral.size()
+ || (static_cast<int>(tk.length()) >= importLiteral.size()
&& (strncmp(opaque->fileContent + tk.begin(), importLiteral.data(), importLiteral.size()) == 0)))
{
yylex.setScanAngleStringLiteralTokens(true);