summaryrefslogtreecommitdiff
path: root/src/ui/ui_log.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/ui_log.cpp')
-rw-r--r--src/ui/ui_log.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/ui_log.cpp b/src/ui/ui_log.cpp
index 08a0a72..4943548 100644
--- a/src/ui/ui_log.cpp
+++ b/src/ui/ui_log.cpp
@@ -11,7 +11,7 @@ void ui_draw_log()
for (int i = (int)l->history_length-1; i >= 0; i--)
{
- u32 cursor = l->write_cursor - l->history_length + i;
+ s32 cursor = l->write_cursor - l->history_length + i;
if (cursor < 0) {
cursor = (l->write_cursor + i) % MAX_LEN_LOG_HISTORY;
}