summaryrefslogtreecommitdiffstats
path: root/struct.c
diff options
context:
space:
mode:
Diffstat (limited to 'struct.c')
-rw-r--r--struct.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/struct.c b/struct.c
index a8d1f373..c44dbc7a 100644
--- a/struct.c
+++ b/struct.c
@@ -370,7 +370,7 @@ val make_struct_type(val name, val super,
ss->home_type = stype;
ss->home_offs = n;
ss->home = &ss->store;
- ss->store = if2(msl, stslot_place(&su->stslot[m]));
+ ss->store = if2(m >= 0, stslot_place(&su->stslot[m]));
} else {
*ss = su->stslot[m];
ss->store = nil;