SWIG_TypeCheck() takes a const char * now, so don't cast argument passed
to char *! git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9304 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
4ad3708693
commit
29098f6ad2
1 changed files with 2 additions and 3 deletions
|
|
@ -115,9 +115,8 @@ SWIG_ZTS_ConvertResourceData(void * p, const char *type_name, swig_type_info *ty
|
|||
return NULL;
|
||||
}
|
||||
|
||||
/* 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);
|
||||
/* 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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue