HomeFreeBSD

Coding style fix: Use "foo = 1" instead of "foo++" to assign

Description

Coding style fix: Use "foo = 1" instead of "foo++" to assign
the truth value to a boolean variable, especially when inside
a loop. The variable can overflow otherwise, at least in theory.

Details

Provenance
Yaroslav Tykhiy <ytykhiy@gmail.com>Authored on Jun 10 2003, 3:38 PM
Parents
rG018319c22687: Break sentences.
Branches
Unknown
Tags
Unknown

Event Timeline