diff options
author | Georgi Gerganov <ggerganov@gmail.com> | 2023-05-19 20:14:51 +0300 |
---|---|---|
committer | Georgi Gerganov <ggerganov@gmail.com> | 2023-05-19 20:14:51 +0300 |
commit | 4b7e245adf63db675c3daab4a9bfddd451ef4097 (patch) | |
tree | 95078c19f38caabaea28ab1057a5e333317fb181 /examples/common.cpp | |
parent | 5ea43392731040b454c293123839b90e159cbb99 (diff) |
minor : fix compile warnings
Diffstat (limited to 'examples/common.cpp')
-rw-r--r-- | examples/common.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/common.cpp b/examples/common.cpp index a6abc497..a4fea4af 100644 --- a/examples/common.cpp +++ b/examples/common.cpp @@ -749,7 +749,7 @@ bool console_readline(console_state & con_st, std::string & line) { break; } - if (input_char == WEOF || input_char == 0x04 /* Ctrl+D*/) { + if (input_char == (char32_t) WEOF || input_char == 0x04 /* Ctrl+D*/) { end_of_stream = true; break; } @@ -764,7 +764,7 @@ bool console_readline(console_state & con_st, std::string & line) { char32_t code = getchar32(); if (code == '[' || code == 0x1B) { // Discard the rest of the escape sequence - while ((code = getchar32()) != WEOF) { + while ((code = getchar32()) != (char32_t) WEOF) { if ((code >= 'A' && code <= 'Z') || (code >= 'a' && code <= 'z') || code == '~') { break; } |