string.c (mrb_str_index_m): no need to align the position; ref #4569

This commit is contained in:
Yukihiro "Matz" Matsumoto
2022-05-16 14:11:49 +09:00
parent 0299ccf6c7
commit 8c985ff851
-1
View File
@@ -1772,7 +1772,6 @@ mrb_str_index_m(mrb_state *mrb, mrb_value str)
pos = str_index_str_by_char(mrb, str, sub, pos);
if (pos == -1) return mrb_nil_value();
BYTES_ALIGN_CHECK(pos);
return mrb_int_value(mrb, pos);
}