summaryrefslogtreecommitdiff
path: root/libgo/runtime/go-send-small.c
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/runtime/go-send-small.c')
-rw-r--r--libgo/runtime/go-send-small.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgo/runtime/go-send-small.c b/libgo/runtime/go-send-small.c
index 56f9470911f..8e21d368588 100644
--- a/libgo/runtime/go-send-small.c
+++ b/libgo/runtime/go-send-small.c
@@ -147,7 +147,7 @@ __go_send_small (struct __go_channel *channel, uint64_t val, _Bool for_select)
if (channel == NULL)
__go_panic_msg ("send to nil channel");
- __go_assert (channel->element_size <= sizeof (uint64_t));
+ __go_assert (channel->element_type->__size <= sizeof (uint64_t));
__go_send_acquire (channel, for_select);