To: vim_dev@googlegroups.com Subject: Patch 8.0.1687 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.0.1687 Problem: 64 bit compiler warnings. Solution: change type, add type cast. (Mike Williams) Files: src/terminal.c *** ../vim-8.0.1686/src/terminal.c 2018-04-10 15:59:04.295392601 +0200 --- src/terminal.c 2018-04-10 18:22:54.932076916 +0200 *************** *** 3400,3406 **** static void * vterm_malloc(size_t size, void *data UNUSED) { ! return alloc_clear(size); } static void --- 3400,3406 ---- static void * vterm_malloc(size_t size, void *data UNUSED) { ! return alloc_clear((unsigned) size); } static void *************** *** 4016,4024 **** int fname_size; char_u *p = fname; int i; ! int off; ! textline = alloc(width + STRLEN(fname) + 1); if (textline == NULL) return NULL; --- 4016,4024 ---- int fname_size; char_u *p = fname; int i; ! size_t off; ! textline = alloc(width + (int)STRLEN(fname) + 1); if (textline == NULL) return NULL; *** ../vim-8.0.1686/src/version.c 2018-04-10 18:13:01.284148299 +0200 --- src/version.c 2018-04-10 18:24:25.051458141 +0200 *************** *** 764,765 **** --- 764,767 ---- { /* Add new patch number below this line */ + /**/ + 1687, /**/ -- hundred-and-one symptoms of being an internet addict: 149. You find your computer sexier than your girlfriend /// 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 ///