Reduce the size of the _PyLong_DigitValue table.

This commit is contained in:
Raymond Hettinger 2009-01-09 03:58:09 +00:00
parent 1467ac8e54
commit 3563153793
3 changed files with 8 additions and 4 deletions

View file

@ -41,7 +41,7 @@ PyAPI_FUNC(unsigned long) PyLong_AsUnsignedLongMask(PyObject *);
#endif
/* For use by intobject.c only */
PyAPI_DATA(int) _PyLong_DigitValue[256];
PyAPI_DATA(unsigned char) _PyLong_DigitValue[256];
/* _PyLong_AsScaledDouble returns a double x and an exponent e such that
the true value is approximately equal to x * 2**(SHIFT*e). e is >= 0.