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: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=30583e3f3890feb59fcedd74637d83c0c03ad958;p=python Silence a compiler warning. --- diff --git a/Objects/intobject.c b/Objects/intobject.c index 8fe31bf75e..02356639ff 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)