remove casts for enums - not necessary now that the enum type is used instead of integers
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7099 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
508fd65f13
commit
71b3366e0a
2 changed files with 1 additions and 11 deletions
|
|
@ -318,8 +318,7 @@ Swig_cfunction_call(String_or_char *name, ParmList *parms) {
|
|||
if ((SwigType_type(pt) != T_VOID)) {
|
||||
SwigType *rpt = SwigType_typedef_resolve_all(pt);
|
||||
String *pname = Swig_cparm_name(p,i);
|
||||
String *rcaststr = (!cparse_cplusplus && SwigType_isenum(rpt))
|
||||
? Copy(pname): SwigType_rcaststr(rpt, pname);
|
||||
String *rcaststr = SwigType_rcaststr(rpt, pname);
|
||||
|
||||
if (comma) {
|
||||
Printf(func, ",%s", rcaststr);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue