View unanswered posts | View active topics It is currently Sun Jan 20, 2019 6:18 am

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

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

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


Wed Aug 09, 2017 3:50 pm
Site Admin

Joined: Tue Aug 09, 2005 3:21 am
Posts: 1316
Location: UK
oops, sorry. I messed up fixing a warning in that. ... 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 4 guests

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 Fast, secure and Free Open Source software downloads