it's Enik's code and Mac GCC was fine with it. however, I guess you might add a "(float) sqrt" where appropriate and it shall work. can you test the change?