mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
string.c: use mrb_as_int macro.
This commit is contained in:
+1
-1
@@ -2844,7 +2844,7 @@ mrb_str_byteslice(mrb_state *mrb, mrb_value str)
|
||||
}
|
||||
}
|
||||
else {
|
||||
beg = mrb_integer(mrb_to_integer(mrb, a1));
|
||||
beg = mrb_as_int(mrb, a1);
|
||||
len = 1;
|
||||
empty = FALSE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user