diff options
author | Jeremy Evans <[email protected]> | 2025-04-14 19:18:49 -0700 |
---|---|---|
committer | git <[email protected]> | 2025-05-13 03:20:09 +0000 |
commit | 5e59ae186fcf8c93ca63a32abd70bffc0db43d73 () | |
tree | fb8e118be46cf82ca1a3f959e4996c8bd2c01e7e /ext/stringio | |
parent | 18d395e0784401585b5c14300e689de55e208647 (diff) |
[ruby/stringio] Fix Ruby 3.4 check
https://.com/ruby/stringio/commit/a27c5d5e2e Co-authored-by: Sutou Kouhei <[email protected]>
-rw-r--r-- | ext/stringio/stringio.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1866,7 +1866,7 @@ strio_set_encoding(int argc, VALUE *argv, VALUE self) } ptr->enc = enc; if (!NIL_P(ptr->string) && WRITABLE(self) -#if RUBY_API_VERSION_MAJOR == 3 || RUBY_API_VERSION_MAJOR >= 4 // Do not attempt to modify chilled strings on Ruby 3.4+ && !FL_TEST_RAW(ptr->string, RUBY_FL_USER2 | RUBY_FL_USER3) #endif |