summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Objects/longobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/longobject.c b/Objects/longobject.c
index 48a3cde..b758c40 100644
--- a/Objects/longobject.c
+++ b/Objects/longobject.c
@@ -1557,7 +1557,7 @@ _PyLong_Format(PyObject *aa, int base)
digit powbase = base; /* powbase == base ** power */
int power = 1;
for (;;) {
- unsigned long newpow = powbase * (unsigned long)base;
+ twodigits newpow = powbase * (twodigits)base;
if (newpow >> PyLong_SHIFT) /* doesn't fit in a digit */
break;
powbase = (digit)newpow;