Skip to content

Commit 8f9f962

Browse files
committed
Signed variable to unsigned variable cast
1 parent 94dd172 commit 8f9f962

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
@@ -622,7 +622,7 @@ bool console_readline(console_state & con_st, std::string & line) {
622622
fputs("\b \b", stdout); // Move cursor back, print a space, and move cursor back again
623623
remove_last_utf8_char(line);
624624
}
625-
} else if (input_char < 32) {
625+
} else if (static_cast<unsigned>(input_char) < 32) {
626626
// Ignore control characters
627627
} else {
628628
#if defined(_WIN32)

0 commit comments

Comments
 (0)