Name the return value of mrb_range_beg_len()

This commit is contained in:
dearblue
2019-05-25 12:12:21 +09:00
parent c6f30e8f17
commit 56e0e1934d
7 changed files with 24 additions and 18 deletions
+2 -2
View File
@@ -1041,9 +1041,9 @@ num_index:
len = RSTRING_CHAR_LEN(str);
switch (mrb_range_beg_len(mrb, indx, &beg, &len, len, TRUE)) {
case 1:
case MRB_RANGE_OK:
return str_subseq(mrb, str, beg, len);
case 2:
case MRB_RANGE_OUT:
return mrb_nil_value();
default:
break;