fix compile warning:
suggest parentheses around comparison in operand of '=='