From 184e6201511868d7576463010c0bc71bb8fc9bae Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 7 Dec 2021 23:33:31 +0100 Subject: [PATCH] Fix $resolvedType expansion for references to pointers Use the base type, not the full type, to deal with the special case of references to pointers which are blacklisted by classLookup(), for some reason, but can be represented at C wrappers level. --- 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 d8979c9fd..6a5c1c3cb 100644 --- a/Source/Modules/c.cxx +++ b/Source/Modules/c.cxx @@ -1582,7 +1582,7 @@ public: // Special case, just leave it unchanged. typestr = NewString("SwigObj"); } else { - typestr = getClassProxyName(classnametype); + typestr = getClassProxyName(btype); if (!typestr) { if (SwigType_isbuiltin(btype)) { // This should work just as well in C without any changes.