Fix build error

error: suggest parentheses around assignment used as truth value
[-Werror=parentheses]