summaryrefslogtreecommitdiff
path: root/libgo/runtime/go-assert-interface.c
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/runtime/go-assert-interface.c')
-rw-r--r--libgo/runtime/go-assert-interface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgo/runtime/go-assert-interface.c b/libgo/runtime/go-assert-interface.c
index 2510f9aef8..427916f8c4 100644
--- a/libgo/runtime/go-assert-interface.c
+++ b/libgo/runtime/go-assert-interface.c
@@ -36,7 +36,7 @@ __go_assert_interface (const struct __go_type_descriptor *lhs_descriptor,
/* A type assertion to an empty interface just returns the object
descriptor. */
- __go_assert (lhs_descriptor->__code == GO_INTERFACE);
+ __go_assert ((lhs_descriptor->__code & GO_CODE_MASK) == GO_INTERFACE);
lhs_interface = (const struct __go_interface_type *) lhs_descriptor;
if (lhs_interface->__methods.__count == 0)
return rhs_descriptor;