]> granicus.if.org Git - nethack/commitdiff
Fixed compiler warning using pointer as UINT.
authorBart House <bart@barthouse.com>
Sat, 2 Sep 2017 19:08:44 +0000 (12:08 -0700)
committerPasi Kallinen <paxed@alt.org>
Mon, 4 Sep 2017 09:41:53 +0000 (12:41 +0300)
win/win32/mhmain.c

index 2b52f71cf1cd9fb4556c366f6233a59442d859fd..48c2ea3a69ab2273269fdfdd310be110faa7ecc7 100644 (file)
@@ -370,7 +370,7 @@ MainWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
             ZeroMemory(kbd_state, sizeof(kbd_state));
             GetKeyboardState(kbd_state);
 
-            if (ToAscii(wParam, (lParam >> 16) & 0xFF, kbd_state, &c, 0)) {
+            if (ToAscii((UINT) wParam, (lParam >> 16) & 0xFF, kbd_state, &c, 0)) {
                 NHEVENT_KBD(c & 0xFF);
                 return 0;
             } else {