Author: Armin Rigo <[email protected]>
Branch: stm-thread-2
Changeset: r57776:b673b45b1219
Date: 2012-10-03 17:18 +0200
http://bitbucket.org/pypy/pypy/changeset/b673b45b1219/

Log:    64-bit fix

diff --git a/pypy/translator/c/src/debug_print.c 
b/pypy/translator/c/src/debug_print.c
--- a/pypy/translator/c/src/debug_print.c
+++ b/pypy/translator/c/src/debug_print.c
@@ -162,10 +162,10 @@
         }
         color = 31 + (color % 7);
         p = malloc(20);    /* leak */
-        sprintf(p, "\033[1m\033[%dm", color);
+        sprintf(p, "\033[1m\033[%dm", (int)color);
         debug_start_colors_1 = p;
         p = malloc(16);
-        sprintf(p, "\033[%dm", color);
+        sprintf(p, "\033[%dm", (int)color);
         debug_start_colors_2 = p;
 #endif
     }
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to