]> granicus.if.org Git - python/commitdiff
Silence a compiler warning.
authorRaymond Hettinger <python@rcn.com>
Sat, 3 Apr 2010 17:10:05 +0000 (17:10 +0000)
committerRaymond Hettinger <python@rcn.com>
Sat, 3 Apr 2010 17:10:05 +0000 (17:10 +0000)
Objects/intobject.c

index 8fe31bf75eff9b469d58af4799ab4c0f0d776bea..02356639ffbd0f0dbe7c22699532e790b8ec6f0f 100644 (file)
@@ -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)