summaryrefslogtreecommitdiffstats
path: root/struct.c
diff options
context:
space:
mode:
Diffstat (limited to 'struct.c')
-rw-r--r--struct.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/struct.c b/struct.c
index d1887f19..5e8b1aef 100644
--- a/struct.c
+++ b/struct.c
@@ -1492,11 +1492,12 @@ static val struct_inst_equal(val left, val right)
return t;
}
-static cnum struct_inst_hash(val obj, int *count, ucnum seed)
+static ucnum struct_inst_hash(val obj, int *count, ucnum seed)
{
struct struct_inst *si = coerce(struct struct_inst *, obj->co.handle);
struct struct_type *st = si->type;
- cnum nslots = st->nslots, sl, out = equal_hash(st->self, count, seed);
+ cnum nslots = st->nslots, sl;
+ ucnum out = equal_hash(st->self, count, seed);
check_init_lazy_struct(obj, si);