Hi,

When using $descriptor in a typedef-ed type in typemaps, the wrong SwigType is used. This patch fixes that.

NOTE: I have not run tests.

Thanks,
Nishant

Source/CParse/util.c
@@ -47,7 +47,7 @@ void Swig_cparse_replace_descriptor(String *s) {
     }
     *d = 0;
     arg = NewString(tmp + 12);
-    t = Swig_cparse_type(arg);
+    t = SwigType_typedef_resolve_all(Swig_cparse_type(arg));
     Delete(arg);
     arg = 0;