• Mark Dickinson's avatar
    Some minor cleanups in PyLong_FromLong: · d4624c33
    Mark Dickinson authored
     - fast path wasn't being properly taken for negative ints;
       thanks Victor Stinner for pointing this out.
     - use Py_SAFE_DOWNCAST instead of direct casting to digit
       (it's safer, especially if we ever consider moving to 30-bit
       digits)
     - cleaner way to write negation
    d4624c33
longobject.c 97.8 KB