View unanswered posts | View active topics It is currently Mon Nov 20, 2017 10:17 pm



Reply to topic  [ 2 posts ] 
 Bug: f32toint() macro causes division by zero 
Author Message

Joined: Mon Jan 23, 2017 6:21 pm
Posts: 2
Hello,

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

Cheers...


Wed Aug 09, 2017 3:50 pm
Profile
Site Admin

Joined: Tue Aug 09, 2005 3:21 am
Posts: 1209
Location: UK
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


Fri Aug 18, 2017 1:37 pm
Profile ICQ WWW
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
  Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.
Get devkitPro at SourceForge.net. Fast, secure and Free Open Source software downloads