diff options
Diffstat (limited to 'include/ruby/3/core/rstring.h')
| -rw-r--r-- | include/ruby/3/core/rstring.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/ruby/3/core/rstring.h b/include/ruby/3/core/rstring.h index 266edca9b6..3d40f850bc 100644 --- a/include/ruby/3/core/rstring.h +++ b/include/ruby/3/core/rstring.h @@ -108,7 +108,7 @@ RSTRING_EMBED_LEN(VALUE str) VALUE f = RBASIC(str)->flags; f &= RSTRING_EMBED_LEN_MASK; f >>= RSTRING_EMBED_LEN_SHIFT; - return f; + return (long)f; } RUBY3_ATTR_PURE_ON_NDEBUG() |
