diff --git a/src/server/sv_main.c b/src/server/sv_main.c index 0e5d5b0f..024bc4da 100644 --- a/src/server/sv_main.c +++ b/src/server/sv_main.c @@ -1030,7 +1030,7 @@ void SV_Shutdown (char *finalmsg, qboolean reconnect) // free current level if (sv.demofile) - FS_FCloseFile (sv.demofile); + FS_FCloseFile ((size_t)sv.demofile); memset (&sv, 0, sizeof(sv)); Com_SetServerState (sv.state); @@ -1040,7 +1040,7 @@ void SV_Shutdown (char *finalmsg, qboolean reconnect) if (svs.client_entities) Z_Free (svs.client_entities); if (svs.demofile) - FS_FCloseFile (svs.demofile); + FS_FCloseFile ((size_t)svs.demofile); memset (&svs, 0, sizeof(svs)); } diff --git a/src/server/sv_send.c b/src/server/sv_send.c index 71ae0db3..d4f678f8 100644 --- a/src/server/sv_send.c +++ b/src/server/sv_send.c @@ -438,7 +438,7 @@ void SV_DemoCompleted (void) { if (sv.demofile) { - FS_FCloseFile (sv.demofile); + FS_FCloseFile ((size_t)sv.demofile); sv.demofile = NULL; } SV_Nextserver (); @@ -502,7 +502,7 @@ void SV_SendClientMessages (void) else { // get the next message - r = FS_FRead (&msglen, 4, 1, sv.demofile); + r = FS_FRead (&msglen, 4, 1, (size_t)sv.demofile); if (r != 4) { SV_DemoCompleted (); @@ -516,7 +516,7 @@ void SV_SendClientMessages (void) } if (msglen > MAX_MSGLEN) Com_Error (ERR_DROP, "SV_SendClientMessages: msglen > MAX_MSGLEN"); - r = FS_FRead (msgbuf, msglen, 1, sv.demofile); + r = FS_FRead (msgbuf, msglen, 1, (size_t)sv.demofile); if (r != msglen) { SV_DemoCompleted ();