]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix a signed/unsigned comparison in PR_UglyValueString
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 5 Oct 2003 13:47:26 +0000 (13:47 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 5 Oct 2003 13:47:26 +0000 (13:47 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3538 d7cf8633-e32d-0410-b094-e92efae38249

pr_edict.c

index b07b6ec6787a532b64f6b78d6200024a7949fd70..b2264f59ded446c8ce249c0fd3367b012f32d3ab 100644 (file)
@@ -458,7 +458,7 @@ char *PR_UglyValueString (etype_t type, eval_t *val)
                // (like newline, specifically) into escape codes,
                // this fixes saving games from various mods
                s = PR_GetString (val->string);
-               for (i = 0;i < sizeof (line) - 2 && *s;)
+               for (i = 0;i < (int)sizeof(line) - 2 && *s;)
                {
                        if (*s == '\n')
                        {