From 4ca26c150efd268d5d71e66589170e76718fcaaa Mon Sep 17 00:00:00 2001 From: Leif Middelschulte Date: Mon, 20 Aug 2012 18:55:51 +0000 Subject: [PATCH] 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 --- Source/Modules/c.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;