mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
fixup! mruby-kernel-ext/kernel.c: use mrb_ensure_integer_type().
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user