Silence a compiler warning.

This commit is contained in:
Raymond Hettinger 2010-04-03 17:10:05 +00:00
parent ba097ec1be
commit 30583e3f38
1 changed files with 1 additions and 1 deletions

View File

@ -1150,7 +1150,7 @@ int_to_decimal_string(PyIntObject *v) {
p = bufend = buf + sizeof(buf); p = bufend = buf + sizeof(buf);
absn = n < 0 ? 0UL - n : n; absn = n < 0 ? 0UL - n : n;
do { do {
*--p = '0' + absn % 10; *--p = '0' + (char)(absn % 10);
absn /= 10; absn /= 10;
} while (absn); } while (absn);
if (n < 0) if (n < 0)