summaryrefslogtreecommitdiffstats
path: root/src/getchar.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-01-31 18:08:34 +0100
committerBram Moolenaar <Bram@vim.org>2016-01-31 18:08:34 +0100
commit448a22549b4528fd81d520497f30672567199c96 (patch)
treed59ab514add9eda10068be198c1e168dbce05875 /src/getchar.c
parent3803bad99de92f4c5ebd6f40b757bc7ade47619e (diff)
patch 7.4.1227v7.4.1227
Problem: Compiler warnings. Solution: Add UNUSED. Add type cast. (Yegappan Lakshmanan)
Diffstat (limited to 'src/getchar.c')
-rw-r--r--src/getchar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/getchar.c b/src/getchar.c
index 12e2508127..2c5709003a 100644
--- 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
}