From 219d19e685f20167f6da953286b1a1470671cd7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Povi=C5=A1er?= Date: Thu, 17 Oct 2024 14:37:12 +0200 Subject: [PATCH] Add cast in lexer pragma code --- source/parsing/Lexer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/parsing/Lexer.cpp b/source/parsing/Lexer.cpp index 17b6d7580..614566c85 100644 --- a/source/parsing/Lexer.cpp +++ b/source/parsing/Lexer.cpp @@ -1245,7 +1245,7 @@ bool detectTranslateOnOffPragma(std::string_view view, bool offMode) { p++; } - if (cpos == clower->length()) { + if (cpos == (int) clower->length()) { // We have a complete match, check the comment line // ends there or the match is followed by a whitespace if (p == end || isWhitespace(*p))