Fix compiler typo when checking arithmetic function calls for portability