]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix warnings in terencehill's code
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 26 Sep 2010 06:40:31 +0000 (06:40 +0000)
committerRudolf Polzer <divverent@alientrap.org>
Sun, 26 Sep 2010 06:42:29 +0000 (08:42 +0200)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10497 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=e2ca60e84ef1525d1b097548534e6ab1c96885b2

keys.c

diff --git a/keys.c b/keys.c
index c76e303f89e1f1e09f687b7e9d5367e896d131f7..d182291c1958b8abdacb0ac12afbb57f4757d156 100644 (file)
--- a/keys.c
+++ b/keys.c
@@ -224,7 +224,7 @@ static void Key_History_Find_Backwards(void)
        for ( ; i >= 0; i--)
                if (matchpattern_with_separator(ConBuffer_GetLine(&history, i), partial, true, "", false))
                {
-                       Con_Printf("^2%*i^7 %s\n", digits, i+1, ConBuffer_GetLine(&history, i));
+                       Con_Printf("^2%*i^7 %s\n", (int)digits, i+1, ConBuffer_GetLine(&history, i));
                        history_line = i;
                        history_matchfound = true;
                        return;
@@ -255,7 +255,7 @@ static void Key_History_Find_Forwards(void)
        for ( ; i < CONBUFFER_LINES_COUNT(&history); i++)
                if (matchpattern_with_separator(ConBuffer_GetLine(&history, i), partial, true, "", false))
                {
-                       Con_Printf("^2%*i^7 %s\n", digits, i+1, ConBuffer_GetLine(&history, i));
+                       Con_Printf("^2%*i^7 %s\n", (int)digits, i+1, ConBuffer_GetLine(&history, i));
                        history_line = i;
                        history_matchfound = true;
                        return;
@@ -277,7 +277,7 @@ static void Key_History_Find_All(void)
        for (i=0; i<CONBUFFER_LINES_COUNT(&history); i++)
                if (matchpattern_with_separator(ConBuffer_GetLine(&history, i), partial, true, "", false))
                {
-                       Con_Printf("%s%*i^7 %s\n", (i == history_line) ? "^2" : "^3", digits, i+1, ConBuffer_GetLine(&history, i));
+                       Con_Printf("%s%*i^7 %s\n", (i == history_line) ? "^2" : "^3", (int)digits, i+1, ConBuffer_GetLine(&history, i));
                        count++;
                }
        Con_Printf("%i result%s\n\n", count, (count != 1) ? "s" : "");
@@ -304,7 +304,7 @@ static void Key_History_f(void)
        }
 
        for ( ; i<CONBUFFER_LINES_COUNT(&history); i++)
-               Con_Printf("^3%*i^7 %s\n", digits, i+1, ConBuffer_GetLine(&history, i));
+               Con_Printf("^3%*i^7 %s\n", (int)digits, i+1, ConBuffer_GetLine(&history, i));
        Con_Printf("\n");
 }