summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-pack
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2021-09-07 14:26:28 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2021-09-07 14:31:56 +0900
commitcbfaa5e20fe15680a5afe99394b99dc2db6b51f5 (patch)
tree6cfcd3c5a1021ad4f3a2a50ecd2663b0a9703ca7 /mrbgems/mruby-pack
parent79bc8e25397a0f343a85aebeca036edc0c42562c (diff)
downloadmruby-cbfaa5e20fe15680a5afe99394b99dc2db6b51f5.tar.gz
mruby-cbfaa5e20fe15680a5afe99394b99dc2db6b51f5.zip
object.c: rename `mrb_to_int` to `mrb_to_integer`.
Consistent naming: `integer` to represent integer packed in `mrb_value` instead of `int`.
Diffstat (limited to 'mrbgems/mruby-pack')
-rw-r--r--mrbgems/mruby-pack/src/pack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mrbgems/mruby-pack/src/pack.c b/mrbgems/mruby-pack/src/pack.c
index c06e4cfc5..f0d4b8d9e 100644
--- a/mrbgems/mruby-pack/src/pack.c
+++ b/mrbgems/mruby-pack/src/pack.c
@@ -1384,7 +1384,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_int(mrb, o);
+ o = mrb_to_integer(mrb, o);
}
#ifndef MRB_NO_FLOAT
else if (type == PACK_TYPE_FLOAT) {