[Go] Don't convert arrays to pointers if there is a "gotype" typemap entry.
Fixes #749
This commit is contained in:
parent
46aaf11b01
commit
b819363117
4 changed files with 50 additions and 2 deletions
|
|
@ -1463,7 +1463,7 @@ private:
|
|||
p = getParm(p);
|
||||
|
||||
SwigType *pt = Copy(Getattr(p, "type"));
|
||||
if (SwigType_isarray(pt)) {
|
||||
if (SwigType_isarray(pt) && Getattr(p, "tmap:gotype") == NULL) {
|
||||
SwigType_del_array(pt);
|
||||
SwigType_add_pointer(pt);
|
||||
}
|
||||
|
|
@ -5109,7 +5109,7 @@ private:
|
|||
}
|
||||
|
||||
String *t = Copy(type);
|
||||
if (SwigType_isarray(t)) {
|
||||
if (SwigType_isarray(t) && Getattr(n, "tmap:gotype") == NULL) {
|
||||
SwigType_del_array(t);
|
||||
SwigType_add_pointer(t);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue