[Python-checkins] r69974 - python/trunk/Objects/longobject.c
mark.dickinson
python-checkins at python.org
Wed Feb 25 21:29:50 CET 2009
Author: mark.dickinson
Date: Wed Feb 25 21:29:50 2009
New Revision: 69974
Log:
Replace long with twodigits, to avoid depending
on sizeof(digit) < sizeof(long)
Modified:
python/trunk/Objects/longobject.c
Modified: python/trunk/Objects/longobject.c
==============================================================================
--- python/trunk/Objects/longobject.c (original)
+++ python/trunk/Objects/longobject.c Wed Feb 25 21:29:50 2009
@@ -1273,7 +1273,7 @@
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;
More information about the Python-checkins
mailing list