From abbb212844ad049e90d9e52c59ee228995e7320a Mon Sep 17 00:00:00 2001 From: havoc Date: Fri, 3 Feb 2006 05:14:24 +0000 Subject: [PATCH] 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 --- console.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.39.2