diff options
author | Jo-Philipp Wich <jo@mein.io> | 2021-05-26 14:06:00 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2021-07-11 15:49:14 +0200 |
commit | 3974e71acc9c7316d9840b298f0c444b6040a269 (patch) | |
tree | 5fba43084ba9466cb3362c1c99eac82f5cd3132d /types.c | |
parent | bf8522625f55fa2657dee3b9356b20fa0dba725f (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.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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: |