Skip to content

Commit c477722

Browse files
committed
Signed variable to unsigned variable cast
1 parent 26ec0a8 commit c477722

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/common.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ bool console_readline(console_state & con_st, std::string & line) {
522522
fputs("\b \b", stdout); // Move cursor back, print a space, and move cursor back again
523523
remove_last_utf8_char(line);
524524
}
525-
} else if (input_char < 32) {
525+
} else if (static_cast<unsigned>(input_char) < 32) {
526526
// Ignore control characters
527527
} else {
528528
#if defined(_WIN32)

0 commit comments

Comments
 (0)