Signed variable to unsigned variable cast
This commit is contained in:
parent
94dd17247a
commit
8f9f962d4d
1 changed files with 1 additions and 1 deletions
|
@ -622,7 +622,7 @@ bool console_readline(console_state & con_st, std::string & line) {
|
||||||
fputs("\b \b", stdout); // Move cursor back, print a space, and move cursor back again
|
fputs("\b \b", stdout); // Move cursor back, print a space, and move cursor back again
|
||||||
remove_last_utf8_char(line);
|
remove_last_utf8_char(line);
|
||||||
}
|
}
|
||||||
} else if (input_char < 32) {
|
} else if (static_cast<unsigned>(input_char) < 32) {
|
||||||
// Ignore control characters
|
// Ignore control characters
|
||||||
} else {
|
} else {
|
||||||
#if defined(_WIN32)
|
#if defined(_WIN32)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue