From c9a82e8ae67ce0f32a6d344392145e80a3a35bf2 Mon Sep 17 00:00:00 2001 From: Bart House Date: Sat, 2 Sep 2017 11:48:32 -0700 Subject: [PATCH] Fix compiler warning where we cast 32bit value to pointer. --- win/win32/mhfont.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/win/win32/mhfont.c b/win/win32/mhfont.c index c04419982..1b802f2d0 100644 --- a/win/win32/mhfont.c +++ b/win/win32/mhfont.c @@ -206,11 +206,11 @@ mswin_charset() { CHARSETINFO cis; if (SYMHANDLING(H_IBM)) - if (TranslateCharsetInfo((DWORD *) GetOEMCP(), &cis, TCI_SRCCODEPAGE)) + if (TranslateCharsetInfo((DWORD *) (uintptr_t) GetOEMCP(), &cis, TCI_SRCCODEPAGE)) return cis.ciCharset; else return OEM_CHARSET; - else if (TranslateCharsetInfo((DWORD *) GetACP(), &cis, TCI_SRCCODEPAGE)) + else if (TranslateCharsetInfo((DWORD *) (uintptr_t) GetACP(), &cis, TCI_SRCCODEPAGE)) return cis.ciCharset; else return ANSI_CHARSET;