From 2f58208898c07493cbddc2da53a4726f456c7880 Mon Sep 17 00:00:00 2001 From: Marcelo Matus Date: Mon, 20 Mar 2006 10:47:39 +0000 Subject: [PATCH] fix for %copyctor + default_constructor.i git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9022 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- SWIG/Source/Swig/stype.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/SWIG/Source/Swig/stype.c b/SWIG/Source/Swig/stype.c index e74853b05..be89ec849 100644 --- a/SWIG/Source/Swig/stype.c +++ b/SWIG/Source/Swig/stype.c @@ -765,7 +765,12 @@ String *SwigType_rcaststr(SwigType *s, const String_or_char *name) { rs = s; } - td = SwigType_typedef_resolve(rs); + if ((SwigType_isconst(rs) || SwigType_isarray(rs) || SwigType_isreference(rs))) { + td = 0; + } else { + td = SwigType_typedef_resolve(rs); + } + if (td) { if ((SwigType_isconst(td) || SwigType_isarray(td) || SwigType_isreference(td))) { elements = SwigType_split(td);