Warning fix in Go wrappers when wrapping string constants

string_constants test case.
This commit is contained in:
William S Fulton 2016-03-13 15:36:59 +00:00
parent e03d0b0525
commit 3ac3d061a6
1 changed files with 1 additions and 0 deletions

View File

@ -2792,6 +2792,7 @@ private:
} else if (SwigType_type(type) == T_CHAR) {
quote = '\'';
} else if (SwigType_type(type) == T_STRING) {
Printv(get, "(char *)", NULL);
quote = '"';
} else {
quote = '\0';