mruby-string-ext: fix a typo; ref #6016

This commit is contained in:
Yukihiro "Matz" Matsumoto
2023-09-23 11:44:15 +09:00
parent 8a538c40c0
commit 15bb6a9f9b
+1 -1
View File
@@ -1071,7 +1071,7 @@ str_codepoints(mrb_state *mrb, mrb_value self)
{
mrb_value result;
char *p = RSTRING_PTR(self);
char *e = b + RSTRING_LEN(self);
char *e = p + RSTRING_LEN(self);
mrb->c->ci->mid = 0;
result = mrb_ary_new(mrb);