Bug: f32toint() macro causes division by zero

Post Reply
evolver
Posts: 2
Joined: Mon Jan 23, 2017 6:21 pm

Bug: f32toint() macro causes division by zero

Post by evolver » Wed Aug 09, 2017 3:50 pm

Hello,

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

Cheers...

WinterMute
Site Admin
Posts: 1369
Joined: Tue Aug 09, 2005 3:21 am
Location: UK
Contact:

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

Post by WinterMute » Fri Aug 18, 2017 1:37 pm

oops, sorry. I messed up fixing a warning in that.

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

Thanks for letting us know.
Help keep devkitPro toolchains free, Donate today

devkitPro IRC support
Personal Blog

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests