From: divverent Date: Fri, 25 Jan 2008 11:40:15 +0000 (+0000) Subject: fix warning X-Git-Tag: xonotic-v0.1.0preview~2502 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=59a9465f1205a694b0a2fbc36000735329b0497e;p=xonotic%2Fdarkplaces.git fix warning git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8010 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/console.c b/console.c index 8b401a7b..2c0e8a5a 100644 --- a/console.c +++ b/console.c @@ -2354,14 +2354,14 @@ void Con_CompleteCommandLine (void) p = resultbuf.strings[0]; q = resultbuf.strings[resultbuf.numstrings - 1]; for(; *p && *p == *q; ++p, ++q); - matchchars = p - resultbuf.strings[0]; + matchchars = (unsigned int)(p - resultbuf.strings[0]); } if(dirbuf.numstrings > 0) { p = dirbuf.strings[0]; q = dirbuf.strings[dirbuf.numstrings - 1]; for(; *p && *p == *q; ++p, ++q); - matchchars = min(matchchars, p - dirbuf.strings[0]); + matchchars = min(matchchars, (unsigned int)(p - dirbuf.strings[0])); } // now p points to the first non-equal character, or to the end // of resultbuf.strings[0]. We want to append the characters