Style correction: for loops should always use braces.  Do not use assignment as an expression.