diff --git a/Source/CParse/templ.c b/Source/CParse/templ.c index 4bb63fa70..c239874b8 100644 --- a/Source/CParse/templ.c +++ b/Source/CParse/templ.c @@ -508,8 +508,8 @@ template_locate(String *name, Parm *tparms) { if (t) { String *tbase = SwigType_base(t); t = SwigType_default(t); + Replaceid(t,"enum SWIGTYPE",tbase); Replaceid(t,"SWIGTYPE",tbase); - Replaceid(t,"SWIGENUM",tbase); Printf(rname,"%s",t); Delete(t); } else { diff --git a/Source/Swig/stype.c b/Source/Swig/stype.c index 77dd6aa5d..438613512 100644 --- a/Source/Swig/stype.c +++ b/Source/Swig/stype.c @@ -279,7 +279,7 @@ int SwigType_issimple(SwigType *t) { * Arrays: a().SWIGTYPE * Types: SWIGTYPE * MemberPointer: m(CLASS).SWIGTYPE - * Enums: enum SWIGENUM + * Enums: enum SWIGTYPE * * Note: if this function is applied to a primitive type, it returns NULL. This * allows recursive application for special types like arrays.