Fixed clang warning about subtraction being evaluated first