bytestring.c: Use `Py_ssize_t' for collecting buffer lengths.
authorMark Wooding <mdw@distorted.org.uk>
Fri, 3 Jun 2016 20:27:36 +0000 (21:27 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Fri, 3 Jun 2016 20:27:36 +0000 (21:27 +0100)
commit87d705a84eddb339613261871603b272329fe979
treef7ce0545602c345c96d30d45ae63edcda0c17a20
parentbc1cff9ceb1c377c281d109df6fe677b86b0fbf7
bytestring.c: Use `Py_ssize_t' for collecting buffer lengths.

On 64-bit platforms, this is a 64-bit long, so if we pass an int to
`PyObject_AsReadBuffer', it will clobber the next word too.
bytestring.c