summaryrefslogtreecommitdiff
path: root/src/os_mswin.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-02-16 20:12:02 +0100
committerBram Moolenaar <Bram@vim.org>2016-02-16 20:12:02 +0100
commit418f81b5fa400ed59793384f2f3d9df45390f080 (patch)
treee2e69c026c062d0d483c47cddae106d4818a9ed8 /src/os_mswin.c
parent0c2c96e47c8b44f7d69da2add906224a89318ff7 (diff)
downloadvim-git-418f81b5fa400ed59793384f2f3d9df45390f080.tar.gz
patch 7.4.1339v7.4.1339
Problem: Warnings when building the GUI with MingW. (Cesar Romani) Solution: Add type cats. (Yasuhiro Matsumoto)
Diffstat (limited to 'src/os_mswin.c')
-rw-r--r--src/os_mswin.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/os_mswin.c b/src/os_mswin.c
index fc06ab687..3a5922b45 100644
--- a/src/os_mswin.c
+++ b/src/os_mswin.c
@@ -741,7 +741,8 @@ display_errors(void)
gui.starting ? (char_u *)_("Message") :
#endif
(char_u *)_("Error"),
- p, (char_u *)_("&Ok"), 1, NULL, FALSE);
+ (char_u *)p, (char_u *)_("&Ok"),
+ 1, NULL, FALSE);
break;
}
ga_clear(&error_ga);
@@ -2951,7 +2952,7 @@ get_logfont(
if (enc_codepage >= 0 && (int)GetACP() != enc_codepage)
{
int len;
- enc_to_acp(name, (int)strlen((char *)name), &acpname, &len);
+ enc_to_acp(name, (int)STRLEN(name), &acpname, &len);
name = acpname;
}
#endif