Fix one case where we test goout rather than has_goout. The effect
was to incorrect use a return statement before the goout typemap code.
This commit is contained in:
parent
1a99212c2c
commit
39433f12e4
1 changed files with 1 additions and 1 deletions
|
|
@ -1095,7 +1095,7 @@ private:
|
|||
|
||||
String *call = NewString("");
|
||||
|
||||
bool need_return_var = SwigType_type(result) != T_VOID && ((gccgo_flag && is_constructor) || goout != NULL);
|
||||
bool need_return_var = SwigType_type(result) != T_VOID && ((gccgo_flag && is_constructor) || has_goout);
|
||||
if (need_return_var) {
|
||||
Printv(f_go_wrappers, "\tvar swig_r ", NULL);
|
||||
if (is_constructor) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue