From b9685dcf3de53294017b99952dc7eb6245938422 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Wed, 30 Apr 2025 10:32:55 +0200 Subject: [PATCH] ucode-mod-uline: fix build warnings Signed-off-by: Felix Fietkau --- package/utils/ucode-mod-uline/src/ucode.c | 2 +- package/utils/ucode-mod-uline/src/uline.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package/utils/ucode-mod-uline/src/ucode.c b/package/utils/ucode-mod-uline/src/ucode.c index 4f1a3b627c0..353d6bba548 100644 --- a/package/utils/ucode-mod-uline/src/ucode.c +++ b/package/utils/ucode-mod-uline/src/ucode.c @@ -141,7 +141,7 @@ uc_uline_get_line(uc_vm_t *vm, size_t nargs) { struct uc_uline_state *us = uc_fn_thisval("uline.state"); uc_value_t *line2 = uc_fn_arg(0); - uc_value_t *state, *val; + uc_value_t *state; const char *line; size_t len; diff --git a/package/utils/ucode-mod-uline/src/uline.c b/package/utils/ucode-mod-uline/src/uline.c index 17d1d69bc2b..3d0ba8a587c 100644 --- a/package/utils/ucode-mod-uline/src/uline.c +++ b/package/utils/ucode-mod-uline/src/uline.c @@ -893,7 +893,7 @@ void uline_set_hint(struct uline_state *s, const char *str, size_t len) pos_add_string(s, &s->cursor_pos, str, len); } - if (s->cursor_pos.y >= s->rows) { + if (s->cursor_pos.y >= (int16_t)s->rows) { if (s->cursor_pos.x > 0) vt100_next_line(s->output); s->cursor_pos = (struct pos){};