Project

General

Profile

« Previous | Next » 

Revision 33dc0a07

Added by shyouhei (Shyouhei Urabe) over 4 years ago

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]