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){};