A multi-platform library for OpenGL, OpenGL ES, Vulkan, window and input
Agreed. I think it was only a problem because of ubsan. I guess ubsan added checks to the generated code that looked at the value being shifted left 24 and saw that overflow occurred and therefore raised its undefined behaviour signal.
The code would never fail on a two's compliment machine. What ubsan is saying is that the rules of C don't guarantee this code to work - it only works because the overflow writes into the sign bit, which is where the next thing expected it to be anyway.
If the above is true, I don't think their "fix" helps: https://github.com/glfw/glfw/pull/1986/files. I would have thought that the important part is to change the longs to unsigned longs.
LearnOpenGL.com setup for Linux
1 project | reddit.com/r/u_Rapid_Movies | 9 Jan 2022
How to use OpenGL without an IDE (linking libraries)
1 project | reddit.com/r/opengl | 12 Dec 2021
How to make your own game engine (and why)
1 project | reddit.com/r/gamedev | 12 Nov 2021
how do i include glfw in my code to make a window?
1 project | reddit.com/r/vscode | 31 Aug 2021
Is there a way to get japanese text input in raylib?
1 project | reddit.com/r/raylib | 23 Aug 2021