The C standard guarantees precisely that, and always has. Operators
yielding a truth value always yield integer 0 or 1.
You are right, my mistake.
I would still change it, though. It is not obvious that the result of IS_LEAP() is going to be used to index an array, so the slightest change to IS_LEAP() could break the code. Therefore, I would make it explicit somehow, perhaps by changing the macro name, or just by adding a comment next to it.
Migrated from rt.perl.org#128167 (status was 'open')
Searchable as RT128167$
The text was updated successfully, but these errors were encountered: