From: <ol...@us...> - 2009-04-29 14:14:22
|
Revision: 11195 http://swig.svn.sourceforge.net/swig/?rev=11195&view=rev Author: olly Date: 2009-04-29 13:43:23 +0000 (Wed, 29 Apr 2009) Log Message: ----------- int -> Py_ssize_t to fix 64 bit Python 3 failure to compile generated code Modified Paths: -------------- trunk/Lib/python/pyhead.swg Modified: trunk/Lib/python/pyhead.swg =================================================================== --- trunk/Lib/python/pyhead.swg 2009-04-29 12:05:33 UTC (rev 11194) +++ trunk/Lib/python/pyhead.swg 2009-04-29 13:43:23 UTC (rev 11195) @@ -31,7 +31,7 @@ #if PY_VERSION_HEX >= 0x03000000 char *cstr; char *newstr; - int len; + Py_ssize_t len; str = PyUnicode_AsUTF8String(str); PyBytes_AsStringAndSize(str, &cstr, &len); newstr = (char *) malloc(len+1); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |