aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/runtime/reflect.cgo
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/runtime/reflect.cgo')
-rw-r--r--src/pkg/runtime/reflect.cgo2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/runtime/reflect.cgo b/src/pkg/runtime/reflect.cgo
index af74662db3..016b9e9ec0 100644
--- a/src/pkg/runtime/reflect.cgo
+++ b/src/pkg/runtime/reflect.cgo
@@ -87,7 +87,7 @@ func setiface(typ *byte, x *byte, ret *byte) {
InterfaceType *t;
t = (InterfaceType*)gettype(typ);
- if(t->mhdr.nel == 0) {
+ if(t->mhdr.len == 0) {
// already an empty interface
*(Eface*)ret = *(Eface*)x;
return;