summaryrefslogtreecommitdiffhomepage
path: root/src/string.c
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 /src/string.c
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 'src/string.c')
-rw-r--r--src/string.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/string.c b/src/string.c
index 41027165a..6643b543e 100644
--- a/src/string.c
+++ b/src/string.c
@@ -1123,7 +1123,7 @@ str_convert_range(mrb_state *mrb, mrb_value str, mrb_value indx, mrb_value alen,
goto range_arg;
default:
- indx = mrb_to_int(mrb, indx);
+ indx = mrb_to_integer(mrb, indx);
if (mrb_integer_p(indx)) {
*beg = mrb_integer(indx);
*len = 1;
@@ -2830,7 +2830,7 @@ mrb_str_byteslice(mrb_state *mrb, mrb_value str)
}
}
else {
- beg = mrb_integer(mrb_to_int(mrb, a1));
+ beg = mrb_integer(mrb_to_integer(mrb, a1));
len = 1;
empty = FALSE;
}