diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-05-27 21:22:14 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-05-27 21:22:14 +0200 |
commit | f4b68e9056f8ddb64c3d7141df138fe099575abf (patch) | |
tree | ef617d01df43ccc6fdac6db2aa77c45b21ece09f | |
parent | 80a20df86a1ceefa3506cc578ba0ba35da979e38 (diff) | |
download | vim-git-8.2.0831.tar.gz |
patch 8.2.0831: compiler warnings for integer sizesv8.2.0831
Problem: Compiler warnings for integer sizes.
Solution: Add type casts. (Mike Williams)
-rw-r--r-- | src/libvterm/src/pen.c | 4 | ||||
-rw-r--r-- | src/terminal.c | 2 | ||||
-rw-r--r-- | src/version.c | 2 |
3 files changed, 5 insertions, 3 deletions
diff --git a/src/libvterm/src/pen.c b/src/libvterm/src/pen.c index d3738b919..173f64f68 100644 --- a/src/libvterm/src/pen.c +++ b/src/libvterm/src/pen.c @@ -47,7 +47,7 @@ static void lookup_default_colour_ansi(long idx, VTermColor *col) vterm_color_rgb( col, ansi_colors[idx].red, ansi_colors[idx].green, ansi_colors[idx].blue); - col->index = idx; + col->index = (uint8_t)idx; col->type = VTERM_COLOR_INDEXED; } @@ -96,7 +96,7 @@ static int lookup_colour(const VTermState *state, int palette, const long args[] if(argcount < 3) return argcount; - vterm_color_rgb(col, CSI_ARG(args[0]), CSI_ARG(args[1]), CSI_ARG(args[2])); + vterm_color_rgb(col, (uint8_t)CSI_ARG(args[0]), (uint8_t)CSI_ARG(args[1]), (uint8_t)CSI_ARG(args[2])); return 3; diff --git a/src/terminal.c b/src/terminal.c index 0a5ccbc59..52f8105ca 100644 --- a/src/terminal.c +++ b/src/terminal.c @@ -4230,7 +4230,7 @@ parse_osc(int command, VTermStringFragment frag, void *user) return 1; } mch_memmove((char *)gap->ga_data + gap->ga_len, frag.str, frag.len); - gap->ga_len += frag.len; + gap->ga_len += (int)frag.len; if (!frag.final) return 1; diff --git a/src/version.c b/src/version.c index f088e6122..f939822cd 100644 --- a/src/version.c +++ b/src/version.c @@ -747,6 +747,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 831, +/**/ 830, /**/ 829, |