commit | 7ab6be216af6fccae655bd5402ae0ad22447f37a | [log] [tgz] |
---|---|---|
author | Mark Dickinson <dickinsm@gmail.com> | Tue Apr 15 21:42:42 2008 +0000 |
committer | Mark Dickinson <dickinsm@gmail.com> | Tue Apr 15 21:42:42 2008 +0000 |
tree | 22503e2e936f131380051209bb1905c8d9541649 | |
parent | 32dde22186efbbfcfb275ac9542b3e62a9b5cf1b [diff] |
PyLong_FromSsize_t was incorrect when sizeof(size_t) > sizeof(long); rewrite it so that it doesn't care about relative sizes of size_t, long and long long. The rewrite is modeled on PyLong_FromLong, instead of using PyLong_FromByteArray; this makes the algorithm simpler and more direct, and possibly also slightly faster.