fixup! mruby-kernel-ext/kernel.c: use mrb_ensure_integer_type().

This commit is contained in:
Yukihiro "Matz" Matsumoto
2022-04-25 07:29:21 +09:00
parent 425097c7be
commit f45ac65532
+1 -1
View File
@@ -1390,7 +1390,7 @@ mrb_pack_pack(mrb_state *mrb, mrb_value ary)
o = mrb_ary_ref(mrb, ary, aidx);
if (type == PACK_TYPE_INTEGER) {
o = mrb_to_integer(mrb, o);
o = mrb_ensure_int_type(mrb, o);
}
#ifndef MRB_NO_FLOAT
else if (type == PACK_TYPE_FLOAT) {