From: Olly B. <ol...@us...> - 2006-09-20 06:37:55
|
Update of /cvsroot/swig/SWIG/Lib/php4 In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv15906/Lib/php4 Modified Files: php4run.swg Log Message: SWIG_TypeCheck() takes a const char * now, so don't cast argument passed to char *! Index: php4run.swg =================================================================== RCS file: /cvsroot/swig/SWIG/Lib/php4/php4run.swg,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** php4run.swg 5 Sep 2006 16:18:01 -0000 1.18 --- php4run.swg 20 Sep 2006 06:37:50 -0000 1.19 *************** *** 116,122 **** } ! /* convert and cast p from type_name to ptr as ty ! Need to sort out const-ness, can SWIG_TypeCast really not take a const? */ ! tc = SWIG_TypeCheck((char *)type_name,ty); if (!tc) return NULL; return SWIG_TypeCast(tc, p); --- 116,121 ---- } ! /* convert and cast p from type_name to ptr as ty. */ ! tc = SWIG_TypeCheck(type_name, ty); if (!tc) return NULL; return SWIG_TypeCast(tc, p); |