diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2009-02-25 20:33:49 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2009-02-25 20:33:49 (GMT) |
commit | 134708ab14450fa55e96422545548a4b671f1490 (patch) | |
tree | 76a3a29ba8ee2027a455dc2ca29c8f9db25532d7 /Objects | |
parent | 9de7ec7868554e92700e4bda6c5f9d8fcad634dc (diff) | |
download | cpython-134708ab14450fa55e96422545548a4b671f1490.zip cpython-134708ab14450fa55e96422545548a4b671f1490.tar.gz cpython-134708ab14450fa55e96422545548a4b671f1490.tar.bz2 |
Merged revisions 69974 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r69974 | mark.dickinson | 2009-02-25 20:29:50 +0000 (Wed, 25 Feb 2009) | 3 lines
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 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; |