Patch from Michal Marek for Python 2.5 to fix 64 bit array indexes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9289 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
5d40ec2692
commit
d6d23465e0
2 changed files with 6 additions and 1 deletions
|
|
@ -6,7 +6,7 @@ SWIGINTERN int
|
|||
SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize, int *alloc)
|
||||
{
|
||||
if (PyString_Check(obj)) {
|
||||
char *cstr; int len;
|
||||
char *cstr; Py_ssize_t len;
|
||||
PyString_AsStringAndSize(obj, &cstr, &len);
|
||||
if (cptr) {
|
||||
if (alloc) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue