From d176dde0d186e5b53ad0077671261fd0ab91a524 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Mon, 12 Jul 2004 23:52:33 +0000 Subject: [PATCH] Fixed switch (unsigned int) { case -1 / -2: } problems. --- controls/combo.c | 2 +- windows/nonclient.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/controls/combo.c b/controls/combo.c index 0e9c475ff59..3c879480c46 100644 --- a/controls/combo.c +++ b/controls/combo.c @@ -1343,7 +1343,7 @@ static LRESULT COMBO_Command( LPHEADCOMBO lphc, WPARAM wParam, HWND hWnd ) } else if( lphc->hWndLBox == hWnd ) { - switch( HIWORD(wParam) ) + switch( (short)HIWORD(wParam) ) { case LBN_ERRSPACE: CB_NOTIFY( lphc, CBN_ERRSPACE ); diff --git a/windows/nonclient.c b/windows/nonclient.c index 5fe7f372ef9..c1dedaf1561 100644 --- a/windows/nonclient.c +++ b/windows/nonclient.c @@ -1132,7 +1132,7 @@ LONG NC_HandleSetCursor( HWND hwnd, WPARAM wParam, LPARAM lParam ) { hwnd = WIN_GetFullHandle( (HWND)wParam ); - switch(LOWORD(lParam)) + switch((short)LOWORD(lParam)) { case HTERROR: {