Removed a couple of warnings when compiling with MSVC6
authormolivier <molivier@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 7 Mar 2005 13:07:09 +0000 (13:07 +0000)
committermolivier <molivier@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 7 Mar 2005 13:07:09 +0000 (13:07 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5049 d7cf8633-e32d-0410-b094-e92efae38249

cd_sdl.c
vid_sdl.c

index 916d679..9e6cb03 100644 (file)
--- a/cd_sdl.c
+++ b/cd_sdl.c
@@ -106,7 +106,7 @@ int CDAudio_SysResume (void)
 {
        SDL_CDResume( cd );
        endtime = realtime + (cd->track[ cdPlayTrack - 1 ].length - pauseoffset) / CD_FPS;
-       return SDL_CDPlayTracks( cd, cdPlayTrack - 1, pauseoffset, cdPlayTrack, 0 );
+       return SDL_CDPlayTracks( cd, cdPlayTrack - 1, (int)pauseoffset, cdPlayTrack, 0 );
 }
 
 int CDAudio_SysUpdate (void)
index b10b064..c2ece59 100644 (file)
--- a/vid_sdl.c
+++ b/vid_sdl.c
@@ -279,7 +279,7 @@ void Sys_SendKeyEvents( void )
                                break;
                        case SDL_KEYDOWN:
                        case SDL_KEYUP:
-                               Key_Event( MapKey( event.key.keysym.sym ), event.key.keysym.unicode, (event.key.state == SDL_PRESSED) );
+                               Key_Event( MapKey( event.key.keysym.sym ), (char)event.key.keysym.unicode, (event.key.state == SDL_PRESSED) );
                                break;
                        case SDL_ACTIVEEVENT:
                                if( event.active.state == SDL_APPACTIVE )