Skip to content

Commit

Permalink
Fix for upstream change in re.c
Browse files Browse the repository at this point in the history
  • Loading branch information
wks committed Jul 30, 2024
1 parent 22e7a80 commit 1d3f798
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions re.c
Original file line number Diff line number Diff line change
Expand Up @@ -1874,8 +1874,8 @@ rb_reg_search_set_match(VALUE re, VALUE str, long pos, int reverse, int set_back
// pointers as object references. We compute the pointers to the beginning of those
// objects and use RB_GC_GUARD to keep them on the stack so that even if the `match_alloc`
// invocation triggers GC, the `beg` and `end` will still be kept alive.
root_beg = (VALUE)rb_mmtk_chars_to_strbuf((char*)args.regs.beg);
root_end = (VALUE)rb_mmtk_chars_to_strbuf((char*)args.regs.end);
root_beg = (VALUE)rb_mmtk_chars_to_strbuf((char*)regs.beg);
root_end = (VALUE)rb_mmtk_chars_to_strbuf((char*)regs.end);
} else {
root_beg = root_end = Qnil;
}
Expand Down

0 comments on commit 1d3f798

Please sign in to comment.