Skip to content

Commit a27c5d5

Browse files
jeremyevanskou
andcommitted
Fix Ruby 3.4 check
Co-authored-by: Sutou Kouhei <kou@cozmixng.org>
1 parent 4ac33b8 commit a27c5d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/stringio/stringio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1866,7 +1866,7 @@ strio_set_encoding(int argc, VALUE *argv, VALUE self)
18661866
}
18671867
ptr->enc = enc;
18681868
if (!NIL_P(ptr->string) && WRITABLE(self)
1869-
#if RUBY_API_VERSION_MAJOR == 3 || RUBY_API_VERSION_MAJOR >= 4
1869+
#if (RUBY_API_VERSION_MAJOR == 3 && RUBY_API_VERSION_MINOR >= 4) || RUBY_API_VERSION_MAJOR >= 4
18701870
// Do not attempt to modify chilled strings on Ruby 3.4+
18711871
&& !FL_TEST_RAW(ptr->string, RUBY_FL_USER2 | RUBY_FL_USER3)
18721872
#endif

0 commit comments

Comments
 (0)