From 038dbbbcdb0118cfeb410cf475201428ab5884b1 Mon Sep 17 00:00:00 2001 From: havoc Date: Tue, 5 Jul 2005 13:26:47 +0000 Subject: [PATCH] fix a warning git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5510 d7cf8633-e32d-0410-b094-e92efae38249 --- r_shadow.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/r_shadow.c b/r_shadow.c index b37dd00f..3e8cab55 100644 --- a/r_shadow.c +++ b/r_shadow.c @@ -3386,7 +3386,7 @@ void R_Shadow_SaveWorldLights(void) sprintf(line, "%s%f %f %f %f %f %f %f %d \"%s\" %f %f %f %f\n", light->shadow ? "" : "!", light->origin[0], light->origin[1], light->origin[2], light->radius, light->color[0], light->color[1], light->color[2], light->style, light->cubemapname, light->corona, light->angles[0], light->angles[1], light->angles[2]); else sprintf(line, "%s%f %f %f %f %f %f %f %d\n", light->shadow ? "" : "!", light->origin[0], light->origin[1], light->origin[2], light->radius, light->color[0], light->color[1], light->color[2], light->style); - if (bufchars + (int) strlen(line) > bufmaxchars) + if (bufchars + strlen(line) > bufmaxchars) { bufmaxchars = bufchars + strlen(line) + 2048; oldbuf = buf; @@ -3405,7 +3405,7 @@ void R_Shadow_SaveWorldLights(void) } } if (bufchars) - FS_WriteFile(name, buf, bufchars); + FS_WriteFile(name, buf, (fs_offset_t)bufchars); if (buf) Mem_Free(buf); } -- 2.39.2