diff options
author | Leif Middelschulte <leif.middelschulte@gmail.com> | 2012-08-20 18:55:51 +0000 |
---|---|---|
committer | Leif Middelschulte <leif.middelschulte@gmail.com> | 2012-08-20 18:55:51 +0000 |
commit | 4ca26c150efd268d5d71e66589170e76718fcaaa (patch) | |
tree | f53ac9cb3d14792dc6ecdb118dfc23318077ee02 | |
parent | b5d2f4765f8e997a4f8937ee6bd85fa35bbc563a (diff) | |
download | swig-4ca26c150efd268d5d71e66589170e76718fcaaa.tar.gz |
Revert "Fix shadowing variable declaration", because it breaks c++ return value type casting in wrapper functions.
This reverts commit 818a9939ecf10ee6cde3e4e389eaf748ec3999d6.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-c@13709 626c5289-ae23-0410-ae9c-e8d60b6d4f22
-rw-r--r-- | Source/Modules/c.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Modules/c.cxx b/Source/Modules/c.cxx index 2acdcf661..84bcdde8b 100644 --- a/Source/Modules/c.cxx +++ b/Source/Modules/c.cxx @@ -1107,7 +1107,7 @@ ready: } if (!p) break; - type = Getattr(p, "type"); + SwigType *type = Getattr(p, "type"); if (SwigType_type(type) == T_VOID) { p = nextSibling(p); continue; |