Skip to content

Commit

Permalink
Add cast in lexer pragma code
Browse files Browse the repository at this point in the history
  • Loading branch information
povik committed Oct 17, 2024
1 parent fd09975 commit 219d19e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/parsing/Lexer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 219d19e

Please sign in to comment.