string.c: use `mrb_as_int` macro.

parent 4f297ac2
...@@ -2844,7 +2844,7 @@ mrb_str_byteslice(mrb_state *mrb, mrb_value str) ...@@ -2844,7 +2844,7 @@ mrb_str_byteslice(mrb_state *mrb, mrb_value str)
} }
} }
else { else {
beg = mrb_integer(mrb_to_integer(mrb, a1)); beg = mrb_as_int(mrb, a1);
len = 1; len = 1;
empty = FALSE; empty = FALSE;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment