diff options
Diffstat (limited to 'libgo/runtime/go-convert-interface.c')
-rw-r--r-- | libgo/runtime/go-convert-interface.c | 24 |
1 files changed, 8 insertions, 16 deletions
diff --git a/libgo/runtime/go-convert-interface.c b/libgo/runtime/go-convert-interface.c index 259456c..8ce82ea 100644 --- a/libgo/runtime/go-convert-interface.c +++ b/libgo/runtime/go-convert-interface.c @@ -8,6 +8,7 @@ #include "go-assert.h" #include "go-panic.h" #include "interface.h" +#include "runtime.h" /* This is called when converting one interface type into another interface type. LHS_DESCRIPTOR is the type descriptor of the @@ -55,14 +56,10 @@ __go_convert_interface_2 (const struct __go_type_descriptor *lhs_descriptor, if (may_fail) return NULL; - newTypeAssertionError (NULL, - rhs_descriptor, - lhs_descriptor, - NULL, - rhs_descriptor->__reflection, - lhs_descriptor->__reflection, - lhs_methods[0].__name, - &panic_arg); + runtime_newTypeAssertionError (NULL, rhs_descriptor->__reflection, + lhs_descriptor->__reflection, + lhs_methods[0].__name, + &panic_arg); __go_panic (panic_arg); } @@ -100,14 +97,9 @@ __go_convert_interface_2 (const struct __go_type_descriptor *lhs_descriptor, if (may_fail) return NULL; - newTypeAssertionError (NULL, - rhs_descriptor, - lhs_descriptor, - NULL, - rhs_descriptor->__reflection, - lhs_descriptor->__reflection, - p_lhs_method->__name, - &panic_arg); + runtime_newTypeAssertionError (NULL, rhs_descriptor->__reflection, + lhs_descriptor->__reflection, + p_lhs_method->__name, &panic_arg); __go_panic (panic_arg); } |