Skip to content

Commit c2f2ac7

Browse files
committed
shape.c: Fix rb_bug call to use correct format for size_t
1 parent fd7e56a commit c2f2ac7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shape.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1222,7 +1222,7 @@ rb_shape_verify_consistency(VALUE obj, shape_id_t shape_id)
12221222
size_t actual_slot_size = rb_gc_obj_slot_size(obj);
12231223

12241224
if (shape_id_slot_size != actual_slot_size) {
1225-
rb_bug("shape_id heap_index flags mismatch: shape_id_slot_size=%lu, gc_slot_size=%lu\n", shape_id_slot_size, actual_slot_size);
1225+
rb_bug("shape_id heap_index flags mismatch: shape_id_slot_size=%zu, gc_slot_size=%zu\n", shape_id_slot_size, actual_slot_size);
12261226
}
12271227
}
12281228
else {

0 commit comments

Comments
 (0)