From: havoc Date: Tue, 30 Aug 2005 07:34:33 +0000 (+0000) Subject: make compile on MSVC X-Git-Tag: xonotic-v0.1.0preview~4603 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=603987edca0ef1132be0d2e1698c9e850cf3b08f;p=xonotic%2Fdarkplaces.git make compile on MSVC git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5671 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/model_shared.c b/model_shared.c index 3d65e72d..ab7de28c 100644 --- a/model_shared.c +++ b/model_shared.c @@ -189,7 +189,7 @@ model_t *Mod_LoadModel(model_t *mod, qboolean crash, qboolean checkdisk, qboolea if (buf) { - char *bufend = buf + fs_filesize; + char *bufend = (char *)buf + fs_filesize; num = LittleLong(*((int *)buf)); // call the apropriate loader loadmodel = mod;