You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks @spocino for pointing that out. To be fair, the code is very old and I didn't know what I was doing at that time. Unfortunately by initialising the index to zero, the behaviour of the program changes completely, due to a loss of floating point accuracy. The GameBoy Advance doesn't support floating point calculation natively, and the devkitpro implementation is (probably) doing some heavy optimisations underneath that makes undefined behaviour really hard to debug. If I would write this code again, it would 100% use integers instead, but If anyone is up for investigating about this matter, I'll be happy to accept its pull request!
the
square_root
function has logic like so:this is almost definitely errant behavior.
try
i = 0;
rather thani < 0;
The text was updated successfully, but these errors were encountered: