nothings / stb

stb single-file public domain libraries for C/C++
https://twitter.com/nothings
Other
25.99k stars 7.67k forks source link

Minor change to prevent the undefined behavior - left shift of a negative value #1499

Closed JarLob closed 1 month ago

JarLob commented 1 year ago

While it doesn't change anything in practice, signed int overflow/left shift is an undefined behavior.