diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-04-08 18:03:46 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-04-08 18:03:46 +0900 |
commit | 11d5a8318dd5e30bb3ecab80e2f2177bcdef3e34 (patch) | |
tree | 3e08e6072171a6516969ef36be99749c367602a3 /include/ruby/3/core/rstring.h | |
parent | d8720eb7de9cd9d874b621f214c27022e17cc941 (diff) | |
download | ruby-11d5a8318dd5e30bb3ecab80e2f2177bcdef3e34.tar.gz |
Suppress C4244 "possible loss of data" warnings
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() |