Re:Perfecting GLFW for Zig, and finding lurking undefined be...
by kzrdude on Sunday October 31, 2021 @08:06PM
(#29061729)
The problem in the article is something like this:
and with ubsan enabled it says
What's non-obvious is also the rules around arithmetic. Types unsigned char and unsigned int are mentioned in my snippet but the arithmetic - the `<<` operator - performed using the type int.
[ Parent
| on HN ]
There are no comments on this comment yet.