diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2009-02-25 20:29:50 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2009-02-25 20:29:50 (GMT) |
commit | b6464876876d6cb2ce53c40ae33daa5a00d522a4 (patch) | |
tree | 70966e5f31fa50755476cce883227960d9aa423f /Objects | |
parent | afe496dc4694fe3c01eaaf573571607e2e912467 (diff) | |
download | cpython-b6464876876d6cb2ce53c40ae33daa5a00d522a4.zip cpython-b6464876876d6cb2ce53c40ae33daa5a00d522a4.tar.gz cpython-b6464876876d6cb2ce53c40ae33daa5a00d522a4.tar.bz2 |
Replace long with twodigits, to avoid depending
on sizeof(digit) < sizeof(long)
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/longobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/longobject.c b/Objects/longobject.c index 6a5a724..9bd6378 100644 --- a/Objects/longobject.c +++ b/Objects/longobject.c @@ -1273,7 +1273,7 @@ _PyLong_Format(PyObject *aa, int base, int addL, int newstyle) 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; |