mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
The tests are not exhaustive, there are some conditions that aren't checked. The tests are based in the C standard rules about undefined behaviour. This is a compatibility break but, hopefully, all projects are using sane values. If not, there is no guarantee that the projects will build in any platform where RGBDS can be compiled, so it would be better to fix them. Even though, technically, the left shift of a negative value is always undefined, some projects rely on its current behaviour. This is the reason why this doesn't cause a fatal error. Signed-off-by: Antonio Niño Díaz <antonio_nd@outlook.com>