Files
basis_universal/basisu_etc.cpp
Ondrej Stava deb071cc2c Fixing undefined behavior in basisu_etc.cpp
The value inside the static cast can be negative. Casting a negative floating point value to an unsigned integer is an undefined behavior and we were running into issues when executing the code with an address sanitizer turned on.

Not sure if this is the proper way to fix this but it seems to work ok. Either way, the undefined behavior should be fixed.
2020-02-13 14:21:24 -08:00

36 KiB