summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2010-04-03 17:10:05 (GMT)
committerRaymond Hettinger <python@rcn.com>2010-04-03 17:10:05 (GMT)
commit30583e3f3890feb59fcedd74637d83c0c03ad958 (patch)
treeb90aa16919d9dd1d805a95c1e88b6e254ed78364 /Objects
parentba097ec1be8569b1f08e074cf23b9ed05c3ff683 (diff)
downloadcpython-30583e3f3890feb59fcedd74637d83c0c03ad958.zip
cpython-30583e3f3890feb59fcedd74637d83c0c03ad958.tar.gz
cpython-30583e3f3890feb59fcedd74637d83c0c03ad958.tar.bz2
Silence a compiler warning.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/intobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/intobject.c b/Objects/intobject.c
index 8fe31bf..0235663 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)