Fixed 'Bug 12717 - Wrong type resolved for enum substraction'