summaryrefslogtreecommitdiff
path: root/re.c
diff options
context:
space:
mode:
Diffstat (limited to 're.c')
-rw-r--r--re.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/re.c b/re.c
index 528e94a829..447728da09 100644
--- a/re.c
+++ b/re.c
@@ -2564,7 +2564,7 @@ reg_match_pos(VALUE re, VALUE *strp, long pos)
return pos;
}
}
- pos = rb_reg_adjust_startpos(re, str, pos, 0);
+ pos = rb_str_offset(str, pos);
}
return rb_reg_search(re, str, pos, 0);
}