]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
ucode-mod-uline: fix build warnings
authorFelix Fietkau <nbd@nbd.name>
Wed, 30 Apr 2025 08:32:55 +0000 (10:32 +0200)
committerFelix Fietkau <nbd@nbd.name>
Wed, 30 Apr 2025 09:04:14 +0000 (11:04 +0200)
Signed-off-by: Felix Fietkau <nbd@nbd.name>
package/utils/ucode-mod-uline/src/ucode.c
package/utils/ucode-mod-uline/src/uline.c

index 4f1a3b627c01971de262662db27d57be0e96bc0e..353d6bba548c04da0d17afbdacff512772b74748 100644 (file)
@@ -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;
 
index 17d1d69bc2bd13d0788dce36c5c85029854137c8..3d0ba8a587cf5f2c4742bbc5a4cf8016906b0d53 100644 (file)
@@ -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){};