summaryrefslogtreecommitdiff
path: root/instance_table.c
diff options
context:
space:
mode:
Diffstat (limited to 'instance_table.c')
-rw-r--r--instance_table.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/instance_table.c b/instance_table.c
index d1533cd..125c2cf 100644
--- a/instance_table.c
+++ b/instance_table.c
@@ -192,7 +192,7 @@ static U64 val_ptr_hash(void *v, Type *t) {
U32 x = 1;
U64 hash = 0;
arr_foreach(t->struc->fields, Field, f) {
- hash += (U64)x * val_ptr_hash((char *)v + f->offset, &f->type);
+ hash += (U64)x * val_ptr_hash((char *)v + f->offset, f->type);
x = rand_u32(x);
}
return hash;
@@ -287,7 +287,7 @@ static bool val_ptr_eq(void *u, void *v, Type *t) {
}
case TYPE_STRUCT:
arr_foreach(t->struc->fields, Field, f) {
- if (!val_ptr_eq((char *)u + f->offset, (char *)v + f->offset, &f->type))
+ if (!val_ptr_eq((char *)u + f->offset, (char *)v + f->offset, f->type))
return false;
}
return true;