Fix a type issue in r255455. Should not use unsigned type as std::abs()'s template...