fix for %copyctor + default_constructor.i
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9022 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
89579815ab
commit
7cafb3b380
1 changed files with 6 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue