]> granicus.if.org Git - vim/commit
patch 8.1.1384: using "int" for alloc() often results in compiler warnings v8.1.1384
authorBram Moolenaar <Bram@vim.org>
Fri, 24 May 2019 16:54:09 +0000 (18:54 +0200)
committerBram Moolenaar <Bram@vim.org>
Fri, 24 May 2019 16:54:09 +0000 (18:54 +0200)
commit964b3746b9c81e65887e2ac9a335f181db2bb592
tree9afaaac41a1c4f71b359fd6706b88df00e22e7a1
parentd33a764123a8aedb20cd84aeff3b94810ee67c4c
patch 8.1.1384: using "int" for alloc() often results in compiler warnings

Problem:    Using "int" for alloc() often results in compiler warnings.
Solution:   Use "size_t" and remove type casts.  Remove alloc_check(), Vim
            only works with 32 bit ints anyway.
63 files changed:
src/autocmd.c
src/buffer.c
src/change.c
src/channel.c
src/charset.c
src/debugger.c
src/dict.c
src/diff.c
src/digraph.c
src/edit.c
src/eval.c
src/evalfunc.c
src/ex_cmds.c
src/ex_cmds2.c
src/ex_docmd.c
src/ex_eval.c
src/ex_getln.c
src/fileio.c
src/findfile.c
src/fold.c
src/getchar.c
src/gui.c
src/gui_at_fs.c
src/gui_gtk.c
src/gui_gtk_x11.c
src/gui_motif.c
src/gui_w32.c
src/hashtab.c
src/if_cscope.c
src/if_perlsfio.c
src/if_python3.c
src/if_xcmdsrv.c
src/indent.c
src/insexpand.c
src/main.c
src/mbyte.c
src/memfile.c
src/memline.c
src/menu.c
src/message.c
src/misc1.c
src/misc2.c
src/netbeans.c
src/ops.c
src/option.c
src/os_amiga.c
src/os_mswin.c
src/os_unix.c
src/os_vms.c
src/os_win32.c
src/proto/misc2.pro
src/quickfix.c
src/regexp.c
src/screen.c
src/spell.c
src/spellfile.c
src/syntax.c
src/term.c
src/undo.c
src/usercmd.c
src/userfunc.c
src/version.c
src/winclip.c