From 8f9f962d4dcbfb0fc7f8a1c80a1de27e3a102bd8 Mon Sep 17 00:00:00 2001 From: Danny Daemonic Date: Sat, 29 Apr 2023 17:48:52 -0700 Subject: [PATCH] Signed variable to unsigned variable cast --- examples/common.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/common.cpp b/examples/common.cpp index f7973fc52..248c37e5a 100644 --- a/examples/common.cpp +++ b/examples/common.cpp @@ -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 remove_last_utf8_char(line); } - } else if (input_char < 32) { + } else if (static_cast(input_char) < 32) { // Ignore control characters } else { #if defined(_WIN32)