]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
two int casts that were missing, reported by Willis
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 3 Feb 2006 05:14:24 +0000 (05:14 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 3 Feb 2006 05:14:24 +0000 (05:14 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5940 d7cf8633-e32d-0410-b094-e92efae38249

console.c

index 15fc72353c9db5f45d86c50eb8d9371f2e33eed6..7c1977155096752b6d2bb05b0412f6ca9cd8ba7a 100644 (file)
--- a/console.c
+++ b/console.c
@@ -1107,7 +1107,7 @@ void Con_CompleteCommandLine (void)
                                if (GetMapList(s, t, sizeof(t)))
                                {
                                        // first move the cursor
-                                       key_linepos += strlen(t) - strlen(s);
+                                       key_linepos += (int)strlen(t) - (int)strlen(s);
 
                                        // and now do the actual work
                                        *s = 0;
@@ -1116,7 +1116,7 @@ void Con_CompleteCommandLine (void)
 
                                        // and fix the cursor
                                        if(key_linepos > (int) strlen(key_lines[edit_line]))
-                                               key_linepos = strlen(key_lines[edit_line]);
+                                               key_linepos = (int) strlen(key_lines[edit_line]);
                                }
                                return;
                        }