Page 1 of 1

Bug: f32toint() macro causes division by zero

Posted: Wed Aug 09, 2017 3:50 pm
by evolver
Hello,

The expression "(1 >> 12)" in the f32toint() macro evaluates to zero and causes a division by zero. Should be "(1U << 12)" instead.

Cheers...

Re: Bug: f32toint() macro causes division by zero

Posted: Fri Aug 18, 2017 1:37 pm
by WinterMute
oops, sorry. I messed up fixing a warning in that.

https://github.com/devkitPro/libnds/com ... 93f7a621fa

Thanks for letting us know.