summaryrefslogtreecommitdiffhomepage
path: root/types.c
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2021-05-26 14:06:00 +0200
committerJo-Philipp Wich <jo@mein.io>2021-07-11 15:49:14 +0200
commit3974e71acc9c7316d9840b298f0c444b6040a269 (patch)
tree5fba43084ba9466cb3362c1c99eac82f5cd3132d /types.c
parentbf8522625f55fa2657dee3b9356b20fa0dba725f (diff)
treewide: replace a number of unnecessary type casts
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'types.c')
-rw-r--r--types.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/types.c b/types.c
index 706ffd1..520727a 100644
--- a/types.c
+++ b/types.c
@@ -162,9 +162,9 @@ ucv_gc_mark(uc_value_t *uv)
ucv_set_mark(uv);
for (i = 0; i < function->nupvals; i++)
- ucv_gc_mark((uc_value_t *)closure->upvals[i]);
+ ucv_gc_mark(&closure->upvals[i]->header);
- ucv_gc_mark((uc_value_t *)function);
+ ucv_gc_mark(&function->header);
break;
@@ -238,9 +238,9 @@ ucv_free(uc_value_t *uv, bool retain)
ref = &closure->ref;
for (i = 0; i < function->nupvals; i++)
- ucv_put_value((uc_value_t *)closure->upvals[i], retain);
+ ucv_put_value(&closure->upvals[i]->header, retain);
- ucv_put_value((uc_value_t *)function, retain);
+ ucv_put_value(&function->header, retain);
break;
case UC_RESSOURCE: