summaryrefslogtreecommitdiffstats
path: root/gc.c
diff options
context:
space:
mode:
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gc.c b/gc.c
index 45106d8b..41f0c6d2 100644
--- a/gc.c
+++ b/gc.c
@@ -1323,11 +1323,11 @@ static struct cobj_ops prot_array_ops = cobj_ops_init(eq,
val *gc_prot_array_alloc(cnum size)
{
- struct prot_array *pa = convert(struct prot_array *,
- chk_calloc(offsetof(struct prot_array, arr) +
- size * sizeof(val), 1));
+ struct prot_array *pa = coerce(struct prot_array *,
+ chk_calloc(offsetof(struct prot_array, arr) +
+ size * sizeof(val), 1));
pa->size = size;
- pa->self = cobj(convert(mem_t *, pa), prot_array_cls, &prot_array_ops);
+ pa->self = cobj(coerce(mem_t *, pa), prot_array_cls, &prot_array_ops);
return pa->arr;
}