diff src/getchar.c @ 7860:150576e6b984 v7.4.1227

commit https://github.com/vim/vim/commit/448a22549b4528fd81d520497f30672567199c96 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jan 31 18:08:34 2016 +0100 patch 7.4.1227 Problem: Compiler warnings. Solution: Add UNUSED. Add type cast. (Yegappan Lakshmanan)
author Christian Brabandt <cb@256bit.org>
date Sun, 31 Jan 2016 18:15:04 +0100
parents 10f17a228661
children 26f555e9aab1
line wrap: on
line diff
--- a/src/getchar.c
+++ b/src/getchar.c
@@ -5322,7 +5322,7 @@ init_mappings(void)
 #if defined(MSDOS) || defined(MSWIN) ||defined(MACOS)
     int		i;
 
-    for (i = 0; i < sizeof(initmappings) / sizeof(struct initmap); ++i)
+    for (i = 0; i < (int)(sizeof(initmappings) / sizeof(struct initmap)); ++i)
 	add_map(initmappings[i].arg, initmappings[i].mode);
 #endif
 }