Fix warnings

"using the result of an assignment as a condition without parentheses" on OS X
(clang)