From: nethack.allison Date: Wed, 11 Jan 2012 01:53:44 +0000 (+0000) Subject: Suppress an x64 build warning (trunk only) X-Git-Tag: MOVE2GIT~94 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=586e2cb67e92e607b480b766bc03d2b4c4b681f6;p=nethack Suppress an x64 build warning (trunk only) --- diff --git a/win/win32/mhmain.c b/win/win32/mhmain.c index 523c3636d..8473f498b 100644 --- a/win/win32/mhmain.c +++ b/win/win32/mhmain.c @@ -1130,7 +1130,7 @@ void nhlock_windows( BOOL lock ) for( i=0; iwindowlist[i].win) && !GetNHApp()->windowlist[i].dead) { DWORD style; - style = GetWindowLongPtr(GetNHApp()->windowlist[i].win, GWL_STYLE); + style = (DWORD)GetWindowLongPtr(GetNHApp()->windowlist[i].win, GWL_STYLE); if( lock ) style &= ~WS_CAPTION; else style |= WS_CAPTION; SetWindowLongPtr(GetNHApp()->windowlist[i].win, GWL_STYLE, style); diff --git a/win/win32/mhmenu.c b/win/win32/mhmenu.c index 2f123550f..181caa446 100644 --- a/win/win32/mhmenu.c +++ b/win/win32/mhmenu.c @@ -121,7 +121,7 @@ HWND mswin_init_menu_window (int type) { if( !GetNHApp()->bWindowsLocked ) { DWORD style; - style = GetWindowLongPtr(ret, GWL_STYLE); + style = (DWORD)GetWindowLongPtr(ret, GWL_STYLE); style |= WS_CAPTION; SetWindowLongPtr(ret, GWL_STYLE, style); SetWindowPos(ret, NULL, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_NOZORDER | SWP_FRAMECHANGED); diff --git a/win/win32/mhtext.c b/win/win32/mhtext.c index 8a217d61b..2c16f0c2d 100644 --- a/win/win32/mhtext.c +++ b/win/win32/mhtext.c @@ -53,7 +53,7 @@ HWND mswin_init_text_window () { SetWindowText(ret, "Text"); if( !GetNHApp()->bWindowsLocked ) { DWORD style; - style = GetWindowLongPtr(ret, GWL_STYLE); + style = (DWORD)GetWindowLongPtr(ret, GWL_STYLE); style |= WS_CAPTION; SetWindowLongPtr(ret, GWL_STYLE, style); SetWindowPos(ret, NULL, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_NOZORDER | SWP_FRAMECHANGED);