major floating point error fixed

eclipse wasn't saying why this was crashing so hard on some inputs. you
would think they'd report an access out of bounds error, but no.