summaryrefslogtreecommitdiff
path: root/spec/ruby/shared/string
diff options
context:
space:
mode:
author卜部昌平 <shyouhei@ruby-lang.org>2021-03-02 15:22:22 +0900
committer卜部昌平 <shyouhei@ruby-lang.org>2021-03-02 17:47:28 +0900
commit33dc0a070a515811e71fccbdc8cf0cd5a5dd784c (patch)
treed6ca5f2dd18cb8edba2de89e6ee682b43ad17680 /spec/ruby/shared/string
parentf7c342f8759c9914e1216da29bd8d7b1b8c8c91b (diff)
RBASIC_SET_CLASS_RAW: follow strict aliasing rule
Instead of rather euphemistic struct cast, just reomve the const qualifier and assign directly. According to ISO/IEC 9899:2018 section 6.5 paragraph 7, `VALUE` and `const VALUE` are allowed to alias (but two distinct structs are not, even when their structures are the same). [Bug #17540]
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4232
Diffstat (limited to 'spec/ruby/shared/string')
0 files changed, 0 insertions, 0 deletions