3 ms·
No it is not. Casting a pointer to a different type can violate the strict aliasing rule, but this is just a regular float to integer conversion. Besides, the s
by TorKlingberg 9y ago
No it is not. Casting a pointer to a different type can violate the strict aliasing rule, but this is just a regular float to integer conversion. Besides, the strict aliasing rule has an exception for char pointers. You can access any type through a char pointer, but the value is implementation defined.