From: Raymond Hettinger Date: Sat, 3 Apr 2010 17:10:05 +0000 (+0000) Subject: Silence a compiler warning. X-Git-Tag: v2.7b1~92 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=30583e3f3890feb59fcedd74637d83c0c03ad958;p=thirdparty%2FPython%2Fcpython.git Silence a compiler warning. --- diff --git a/Objects/intobject.c b/Objects/intobject.c index 8fe31bf75eff..02356639ffbd 100644 --- a/Objects/intobject.c +++ b/Objects/intobject.c @@ -1150,7 +1150,7 @@ int_to_decimal_string(PyIntObject *v) { p = bufend = buf + sizeof(buf); absn = n < 0 ? 0UL - n : n; do { - *--p = '0' + absn % 10; + *--p = '0' + (char)(absn % 10); absn /= 10; } while (absn); if (n < 0)