mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 04:42:32 +00:00
[console] Fix a signed comparison warning
I'm not sure why that didn't trigger in a linux build. Maybe gcc 12 assumed the result would be positive (I think I'm still using 11 for mxe).
This commit is contained in:
parent
474f01d321
commit
11e978b4db
1 changed files with 1 additions and 1 deletions
|
@ -103,7 +103,7 @@ Con_BufferAddText (con_buffer_t *buf, const char *text)
|
|||
}
|
||||
if (c == '\n') {
|
||||
cur_line++;
|
||||
if (cur_line - buf->lines >= buf->max_lines) {
|
||||
if ((uint32_t) (cur_line - buf->lines) >= buf->max_lines) {
|
||||
cur_line -= buf->max_lines;
|
||||
}
|
||||
cur_line->text = text_head;
|
||||
|
|
Loading…
Reference in a new issue