Added parentheses around 1 << 31 statements