summaryrefslogtreecommitdiff
path: root/range.c
diff options
context:
space:
mode:
authorAlan Wu <XrXr@users.noreply.github.com>2025-08-19 15:14:03 -0400
committerAlan Wu <XrXr@users.noreply.github.com>2025-08-19 15:54:12 -0400
commit6b197dec4844eb5967158c16495724cac7eecab2 (patch)
treee9027d2d2099b3daec073749a4461123ce0b849f /range.c
parente639aaacbf7e8b48ee1a3bb73615a4792de6ec5d (diff)
ZJIT: Mark Insn::NewRange as having side effects
Diffstat (limited to 'range.c')
-rw-r--r--range.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/range.c b/range.c
index 12077a068e..615154be4c 100644
--- a/range.c
+++ b/range.c
@@ -47,6 +47,7 @@ static VALUE r_cover_p(VALUE, VALUE, VALUE, VALUE);
static void
range_init(VALUE range, VALUE beg, VALUE end, VALUE exclude_end)
{
+ // Changing this condition has implications for JITs. If you do, please let maintainers know.
if ((!FIXNUM_P(beg) || !FIXNUM_P(end)) && !NIL_P(beg) && !NIL_P(end)) {
VALUE v;