Insert parens to avoid a warning:
  suggest parentheses around arithmetic in operand of '^' [-Wparentheses]