From 59a9465f1205a694b0a2fbc36000735329b0497e Mon Sep 17 00:00:00 2001 From: divverent Date: Fri, 25 Jan 2008 11:40:15 +0000 Subject: [PATCH] fix warning git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8010 d7cf8633-e32d-0410-b094-e92efae38249 --- console.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.2