From: havoc Date: Fri, 3 Feb 2006 05:14:24 +0000 (+0000) Subject: two int casts that were missing, reported by Willis X-Git-Tag: xonotic-v0.1.0preview~4361 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=abbb212844ad049e90d9e52c59ee228995e7320a;p=xonotic%2Fdarkplaces.git two int casts that were missing, reported by Willis git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5940 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/console.c b/console.c index 15fc7235..7c197715 100644 --- 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; }