]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix warning
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 25 Jan 2008 11:40:15 +0000 (11:40 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 25 Jan 2008 11:40:15 +0000 (11:40 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8010 d7cf8633-e32d-0410-b094-e92efae38249

console.c

index 8b401a7bec4dade79880f5f34436431f293de253..2c0e8a5ac492f67bfb83e0df9ae9e89707563d14 100644 (file)
--- 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