string.h: rename mrb_str_to_inum to mrb_str_to_integer.

Consistent naming: `integer` to represent integer packed in `mrb_value`
instead of `inum`.
This commit is contained in:
Yukihiro "Matz" Matsumoto
2021-09-07 14:20:57 +09:00
parent 674d841ead
commit 79bc8e2539
5 changed files with 12 additions and 10 deletions
+2 -2
View File
@@ -835,13 +835,13 @@ mrb_str_count(mrb_state *mrb, mrb_value str)
static mrb_value
mrb_str_hex(mrb_state *mrb, mrb_value self)
{
return mrb_str_to_inum(mrb, self, 16, FALSE);
return mrb_str_to_integer(mrb, self, 16, FALSE);
}
static mrb_value
mrb_str_oct(mrb_state *mrb, mrb_value self)
{
return mrb_str_to_inum(mrb, self, 8, FALSE);
return mrb_str_to_integer(mrb, self, 8, FALSE);
}
/*