if (ival < PyLong_BASE)
return PyLong_FromLong(ival);
/* Count the number of Python digits. */
- t = (unsigned long)ival;
+ t = ival;
while (t) {
++ndigits;
t >>= PyLong_SHIFT;
/* Because we're going LSB to MSB, thisbyte is
more significant than what's already in accum,
so needs to be prepended to accum. */
- accum |= (twodigits)thisbyte << accumbits;
+ accum |= thisbyte << accumbits;
accumbits += 8;
if (accumbits >= PyLong_SHIFT) {
/* There's enough to fill a Python digit. */
if (ival < PyLong_BASE)
return PyLong_FromLong((long)ival);
/* Count the number of Python digits. */
- t = (unsigned long long)ival;
+ t = ival;
while (t) {
++ndigits;
t >>= PyLong_SHIFT;