To: vim_dev@googlegroups.com Subject: Patch 8.2.0831 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.0831 Problem: Compiler warnings for integer sizes. Solution: Add type casts. (Mike Williams) Files: src/libvterm/src/pen.c, src/terminal.c *** ../vim-8.2.0830/src/libvterm/src/pen.c 2020-05-22 22:06:02.165271263 +0200 --- src/libvterm/src/pen.c 2020-05-27 21:14:30.062221356 +0200 *************** *** 47,53 **** vterm_color_rgb( col, ansi_colors[idx].red, ansi_colors[idx].green, ansi_colors[idx].blue); ! col->index = idx; col->type = VTERM_COLOR_INDEXED; } --- 47,53 ---- vterm_color_rgb( col, ansi_colors[idx].red, ansi_colors[idx].green, ansi_colors[idx].blue); ! col->index = (uint8_t)idx; col->type = VTERM_COLOR_INDEXED; } *************** *** 96,102 **** if(argcount < 3) return argcount; ! vterm_color_rgb(col, CSI_ARG(args[0]), CSI_ARG(args[1]), CSI_ARG(args[2])); return 3; --- 96,102 ---- if(argcount < 3) return argcount; ! vterm_color_rgb(col, (uint8_t)CSI_ARG(args[0]), (uint8_t)CSI_ARG(args[1]), (uint8_t)CSI_ARG(args[2])); return 3; *** ../vim-8.2.0830/src/terminal.c 2020-05-22 13:33:58.207383937 +0200 --- src/terminal.c 2020-05-27 21:14:30.062221356 +0200 *************** *** 4230,4236 **** return 1; } mch_memmove((char *)gap->ga_data + gap->ga_len, frag.str, frag.len); ! gap->ga_len += frag.len; if (!frag.final) return 1; --- 4230,4236 ---- return 1; } mch_memmove((char *)gap->ga_data + gap->ga_len, frag.str, frag.len); ! gap->ga_len += (int)frag.len; if (!frag.final) return 1; *** ../vim-8.2.0830/src/version.c 2020-05-26 22:14:23.093012923 +0200 --- src/version.c 2020-05-27 21:14:39.386193379 +0200 *************** *** 748,749 **** --- 748,751 ---- { /* Add new patch number below this line */ + /**/ + 831, /**/ -- hundred-and-one symptoms of being an internet addict: 191. You rate eating establishments not by the quality of the food, but by the availability of electrical outlets for your PowerBook. /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///