[pypy-commit] pypy stm-thread-2: 64-bit fix
arigo
noreply at buildbot.pypy.org
Wed Oct 3 17:19:14 CEST 2012
Author: Armin Rigo <arigo at tunes.org>
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
}
More information about the pypy-commit
mailing list