From 30583e3f3890feb59fcedd74637d83c0c03ad958 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Sat, 3 Apr 2010 17:10:05 +0000 Subject: [PATCH] Silence a compiler warning. --- Objects/intobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.40.0