summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--struct.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/struct.c b/struct.c
index 3b16da7c..6d72d2ae 100644
--- a/struct.c
+++ b/struct.c
@@ -1081,7 +1081,7 @@ static val static_slot_ens_rec(val stype, val sym, val newval,
to.store = nil;
to.home_type = stype;
to.home = &stsl->store;
- to.home_offs = stsl->home_offs;
+ to.home_offs = stsl - st->stslot;
static_slot_rewrite_rec(st, stsl, &to);
set(stslot_loc(stsl), newval);
return newval;