From: havoc Date: Tue, 5 Jul 2005 13:26:47 +0000 (+0000) Subject: fix a warning X-Git-Tag: xonotic-v0.1.0preview~4676 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=038dbbbcdb0118cfeb410cf475201428ab5884b1;p=xonotic%2Fdarkplaces.git fix a warning git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5510 d7cf8633-e32d-0410-b094-e92efae38249 --- 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); }