chiark / gitweb /
key: Use convulong instead of PyLong_AsUnsignedLong.
authorMark Wooding <mdw@distorted.org.uk>
Tue, 21 Mar 2006 01:20:29 +0000 (01:20 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Tue, 21 Mar 2006 01:20:29 +0000 (01:20 +0000)
commit61e45e9b848e9116203243251c44514050f02790
tree871d12185233bc4430391c4b1da8bd5d4f9c4bc6
parent69ba6b578059f5e7b027a573931b56100a43289f
key: Use convulong instead of PyLong_AsUnsignedLong.

Python 2.4's implementation of PyLong_AsUnsignedLong handles integers
correctly; but 2.3 insists on having a real `long' object.  Our
`convulong' function handles these, and also stranger things like MPs.
Use it.
key.c