diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2008-04-15 21:42:42 +0000 |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2008-04-15 21:42:42 +0000 |
commit | 9c86336d29933bb2366aa0b4b140ad120936e74d (patch) | |
tree | ac7ec3752110b13cec9e2b5868d948293067f600 /Lib/test/test_coding.py | |
parent | 51015d57dcf831c6864e3a9424dd49864d5e58d8 (diff) | |
download | cpython-9c86336d29933bb2366aa0b4b140ad120936e74d.tar.gz |
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.
Diffstat (limited to 'Lib/test/test_coding.py')
0 files changed, 0 insertions, 0 deletions