diff src/mbyte.c @ 5136:28e6f5f88968 v7.3.1311

updated for version 7.3.1311 Problem: Compiler warnings on Cygwin. Solution: Add type casts. Add windows include files. (Ken Takata)
author Bram Moolenaar <bram@vim.org>
date Fri, 05 Jul 2013 20:09:16 +0200
parents 322441058afc
children 853a76c7fded
line wrap: on
line diff
--- a/src/mbyte.c
+++ b/src/mbyte.c
@@ -4108,7 +4108,7 @@ encname2codepage(name)
 	p += 6;
 
     if (p[0] == 'c' && p[1] == 'p')
-	cp = atoi(p + 2);
+	cp = atoi((char *)p + 2);
     else if ((idx = enc_canon_search(p)) >= 0)
 	cp = enc_canon_table[idx].codepage;
     else