Fixed 2 warnings found by MSVC6
authormolivier <molivier@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 22 Oct 2003 08:35:11 +0000 (08:35 +0000)
committermolivier <molivier@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 22 Oct 2003 08:35:11 +0000 (08:35 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3601 d7cf8633-e32d-0410-b094-e92efae38249

cd_win.c
vid_wgl.c

index 52bcf13..e335948 100644 (file)
--- a/cd_win.c
+++ b/cd_win.c
@@ -360,7 +360,7 @@ static void CD_f (void)
 
 LONG CDAudio_MessageHandler(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
 {
-       if (lParam != wDeviceID)
+       if (lParam != (LPARAM)wDeviceID)
                return 1;
 
        switch (wParam)
index d7f8f94..2f98be1 100644 (file)
--- a/vid_wgl.c
+++ b/vid_wgl.c
@@ -547,7 +547,7 @@ LONG WINAPI MainWndProc (HWND hWnd, UINT uMsg, WPARAM  wParam, LPARAM lParam)
                        vkey = MapKey(lParam, wParam);
                        GetKeyboardState (state);
                        ToAscii (wParam, vkey, state, &ascchar, 0);
-                       Key_Event (vkey, ascchar & 0xFF, down);
+                       Key_Event (vkey, (char)(ascchar & 0xFF), down);
                        break;
 
                case WM_SYSCHAR: