From: Bart House Date: Sat, 2 Sep 2017 18:48:32 +0000 (-0700) Subject: Fix compiler warning where we cast 32bit value to pointer. X-Git-Tag: NetHack-3.6.1_RC01~403 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c9a82e8ae67ce0f32a6d344392145e80a3a35bf2;p=nethack Fix compiler warning where we cast 32bit value to pointer. --- 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;