summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--struct.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/struct.c b/struct.c
index f42c685b..f8ed361d 100644
--- a/struct.c
+++ b/struct.c
@@ -599,6 +599,8 @@ val clear_struct(val strct, val value)
for (i = 0; i < st->nslots; i++)
si->slot[i] = clear_val;
+ mut(strct);
+
return strct;
}
@@ -621,6 +623,7 @@ val replace_struct(val target, val source)
free(tsi);
target->co.handle = coerce(mem_t *, ssi_copy);
target->co.cls = source->co.cls;
+ mut(target);
}
return target;