Fixed Clang warnings.

Clang complains if you use the result of an assignment without parenthesis, because the developer often meant to use a comparison.
Fixing typo.