It should be fine, but for the future:
http://stackoverflow.com/questions/3118165/when-do-i-use-fabs-and-when-is-it-sufficient-to-use-stdabs

I actually did not know that std::abs is overloaded. This simplifies things a lot. So please use std::abs instead std::fabs in the future. The latter is only for floats, while the first is for all supported types.