]> granicus.if.org Git - nethack/commitdiff
Suppress an x64 build warning (trunk only)
authornethack.allison <nethack.allison>
Wed, 11 Jan 2012 01:53:44 +0000 (01:53 +0000)
committernethack.allison <nethack.allison>
Wed, 11 Jan 2012 01:53:44 +0000 (01:53 +0000)
win/win32/mhmain.c
win/win32/mhmenu.c
win/win32/mhtext.c

index 523c3636d8c98c6d546085ac09474ae572c969ff..8473f498ba28f979ba0adbeaefce29acbfb6c346 100644 (file)
@@ -1130,7 +1130,7 @@ void nhlock_windows( BOOL lock )
        for( i=0; i<MAXWINDOWS; i++ ) {
                if( IsWindow(GetNHApp()->windowlist[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);
index 2f123550fa18d843b8c0113c5441af7e08ddac71..181caa44654256b5a61dd1d999924778457d3593 100644 (file)
@@ -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);
index 8a217d61bb861febc199aaadf012bd36d6a25a95..2c16f0c2d37ef45c986c11c53ba2a928effaf9c1 100644 (file)
@@ -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);