Fix C python < 2.5 wrappers

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12605 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2011-04-03 20:02:08 +00:00
commit 71be2441c2

View file

@ -162,7 +162,7 @@ typedef getreadbufferproc readbufferproc;
typedef getwritebufferproc writebufferproc; typedef getwritebufferproc writebufferproc;
typedef getsegcountproc segcountproc; typedef getsegcountproc segcountproc;
typedef getcharbufferproc charbufferproc; typedef getcharbufferproc charbufferproc;
static inline long PyNumber_AsSsize_t (PyObject *x, void*) static long PyNumber_AsSsize_t (PyObject *x, void *SWIGUNUSEDPARM(exc))
{ {
long result = 0; long result = 0;
PyObject *i = PyNumber_Int(x); PyObject *i = PyNumber_Int(x);