From: Marcelo M. <mar...@us...> - 2004-10-25 19:11:34
|
Update of /cvsroot/swig/SWIG/Lib/python In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3866 Modified Files: pyrun.swg Log Message: no more zero value accepted for pointers Index: pyrun.swg =================================================================== RCS file: /cvsroot/swig/SWIG/Lib/python/pyrun.swg,v retrieving revision 1.41 retrieving revision 1.42 diff -C2 -d -r1.41 -r1.42 *** pyrun.swg 21 Oct 2004 21:53:53 -0000 1.41 --- pyrun.swg 25 Oct 2004 19:11:25 -0000 1.42 *************** *** 327,337 **** } } - } else if (PyInt_Check(obj)) { - /* here we check for the only accepted zero value */ - long v = PyInt_AsLong(obj); - if (v == 0) { - *ptr = 0; - return 0; - } } } --- 327,330 ---- |