Correct abs function should be used (clang -Wabsolute-value)

This is another small step in DT codebase improvement.
In clang -Wabsolute-value is enabled by default, so this had to be fixed somewhen in order to enable -Werror for clang too some day.