more fixes
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 5 Jul 2005 12:56:54 +0000 (12:56 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 5 Jul 2005 12:56:54 +0000 (12:56 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5503 d7cf8633-e32d-0410-b094-e92efae38249

cl_screen.c
qtypes.h

index 34a3ee3..f9f4fe2 100644 (file)
@@ -1087,7 +1087,7 @@ void SCR_CaptureVideo_SoundFrame(qbyte *bufstereo16le, size_t length, int rate)
        if (!cl_capturevideo_soundfile)
                return;
        cl_capturevideo_soundrate = rate;
-       if (FS_Write (cl_capturevideo_soundfile, bufstereo16le, 4 * length) < 4 * length)
+       if (FS_Write (cl_capturevideo_soundfile, bufstereo16le, 4 * length) < (fs_offset_t)(4 * length))
        {
                Cvar_SetValueQuick(&cl_capturevideo, 0);
                Con_Printf("video sound saving failed on frame %i, out of disk space? stopping video capture.\n", cl_capturevideo_frame);
index 24ab64b..4e82c72 100644 (file)
--- a/qtypes.h
+++ b/qtypes.h
@@ -9,9 +9,7 @@ typedef unsigned char qbyte;
 
 typedef enum {false, true} qboolean;
 
-#ifdef WIN64
-# define ssize_t long long
-#elifdef WIN32
+#if defined(WIN32) && !defined(WIN64)
 # define ssize_t long
 #endif