News for hackers. Stuff that matters.
Re:Perfecting GLFW for Zig, and finding lurking undefined be... by CUViper on Sunday October 31, 2021 @06:24PM (#29061053)
It's not actually shifting a char, because integer promotion happens first.

https://github.com/glfw/glfw/pull/1986#issuecomment-95578417...

Re:Perfecting GLFW for Zig, and finding lurking undefined be... by kevin_thibedeau on Monday November 01, 2021 @04:14AM (#29064158)
Furthermore, what ubsan catches is a shift into the sign bit of that promoted char.