Skip to content

Commit 8750e4f

Browse files
committed
Fix build error
1 parent 9c46a00 commit 8750e4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/asm/lexer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1102,7 +1102,7 @@ static bool checkDigitErrors(char const *digits, size_t n, char const *type) {
11021102
return false;
11031103
}
11041104

1105-
if (c >= '0' && c < n + '0' && c != i + '0') {
1105+
if (c >= '0' && c < static_cast<char>(n + '0') && c != static_cast<char>(i + '0')) {
11061106
error("Changed digit for %s constant %s\n", type, printChar(c));
11071107
return false;
11081108
}

0 commit comments

Comments
 (0)