Skip to content

Commit

Permalink
Fix go wrapper compilation error
Browse files Browse the repository at this point in the history
  • Loading branch information
jiulongw authored and nunoguedelha committed Jun 5, 2018
1 parent 4aae757 commit fa96646
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Source/Modules/go.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -2802,6 +2802,10 @@ class GO:public Language {

String *rawval = Getattr(n, "rawval");
if (rawval && Len(rawval)) {
if (SwigType_type(type) == T_STRING) {
Printv(get, "(char *)", NULL);
}

Printv(get, rawval, NULL);
} else {
char quote;
Expand Down

0 comments on commit fa96646

Please sign in to comment.