diff options
author | Raymond Hettinger <python@rcn.com> | 2010-04-03 17:10:05 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2010-04-03 17:10:05 (GMT) |
commit | 30583e3f3890feb59fcedd74637d83c0c03ad958 (patch) | |
tree | b90aa16919d9dd1d805a95c1e88b6e254ed78364 /Objects | |
parent | ba097ec1be8569b1f08e074cf23b9ed05c3ff683 (diff) | |
download | cpython-30583e3f3890feb59fcedd74637d83c0c03ad958.zip cpython-30583e3f3890feb59fcedd74637d83c0c03ad958.tar.gz cpython-30583e3f3890feb59fcedd74637d83c0c03ad958.tar.bz2 |
Silence a compiler warning.
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/intobject.c | 2 |
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) |