| commit | d4624c3331a54506b9c678ad096e56366b66f51d | [log] [tgz] |
|---|---|---|
| author | Mark Dickinson <dickinsm@gmail.com> | Sat Jan 24 15:02:35 2009 +0000 |
| committer | Mark Dickinson <dickinsm@gmail.com> | Sat Jan 24 15:02:35 2009 +0000 |
| tree | b503cc038d47e1f1fbb565f0987d74a970bcf42b | |
| parent | 59e4779abc25626cb0ab9fa24ccb3223a00db143 [diff] |
Some minor cleanups in PyLong_FromLong: - 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