Fix for the implicit conversion of int to float. Ran into this with very strict compiler settings.

Fairly straight forward, just use fabsf() instead of abs().