Skip to content

Commit f1101b9

Browse files
committed
Fix "Wrong kind of access to numeric CArray" when binding into an uint CArray
at_pos was dealing correctly with uints already, but I missed bind_pos.
1 parent b585b5e commit f1101b9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/6model/reprs/CArray.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,9 @@ static void bind_pos(MVMThreadContext *tc, MVMSTable *st, MVMObject *root, void
380380
if (kind == MVM_reg_int64)
381381
REPR(repr_data->elem_type)->box_funcs.set_int(tc,
382382
STABLE(repr_data->elem_type), root, ptr, value.i64);
383+
else if (kind == MVM_reg_uint64)
384+
REPR(repr_data->elem_type)->box_funcs.set_uint(tc,
385+
STABLE(repr_data->elem_type), root, ptr, value.u64);
383386
else if (kind == MVM_reg_num64)
384387
REPR(repr_data->elem_type)->box_funcs.set_num(tc,
385388
STABLE(repr_data->elem_type), root, ptr, value.n64);

0 commit comments

Comments
 (0)