diff src/os_mswin.c @ 6295:15e88e3750e3 v7.4.481

updated for version 7.4.481 Problem: Compiler warning on MS-Windows. Solution: Add type casts. (Ken Takata)
author Bram Moolenaar <bram@vim.org>
date Thu, 16 Oct 2014 20:35:36 +0200
parents e0f2ed0efb49
children 79a667b879e7
line wrap: on
line diff
--- a/src/os_mswin.c
+++ b/src/os_mswin.c
@@ -1644,10 +1644,11 @@ mch_print_init(prt_settings_T *psettings
 	    char_u  *to_free = NULL;
 	    int     maxlen;
 
-	    acp_to_enc(printer_name, STRLEN(printer_name), &to_free, &maxlen);
+	    acp_to_enc(printer_name, (int)STRLEN(printer_name), &to_free,
+								    &maxlen);
 	    if (to_free != NULL)
 		printer_name = to_free;
-	    acp_to_enc(port_name, STRLEN(port_name), &to_free, &maxlen);
+	    acp_to_enc(port_name, (int)STRLEN(port_name), &to_free, &maxlen);
 	    if (to_free != NULL)
 		port_name = to_free;
 	}