diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2009-01-24 15:02:35 +0000 |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2009-01-24 15:02:35 +0000 |
commit | d4624c3331a54506b9c678ad096e56366b66f51d (patch) | |
tree | b503cc038d47e1f1fbb565f0987d74a970bcf42b /Python/ceval.c | |
parent | 59e4779abc25626cb0ab9fa24ccb3223a00db143 (diff) | |
download | cpython-git-d4624c3331a54506b9c678ad096e56366b66f51d.tar.gz |
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
Diffstat (limited to 'Python/ceval.c')
0 files changed, 0 insertions, 0 deletions