Fix arithmetic priority
Merge pull request #618 from FabioBatSilva/DDC-2188

[DDC-2188] Fix arithmetic priority