[tz] logical and arithmetic ops and operator precedence.
Christos Zoulas
christos at zoulas.com
Sun Oct 27 21:53:39 UTC 2019
Hi,
Can we please change in zdump.c:
if (lotm_ok & tm_ok
? (delta(&tm, &lotm) == t - lot
&& tm.tm_isdst == lotm.tm_isdst
&& strcmp(abbr(&tm), ab) == 0)
: lotm_ok == tm_ok) {
to:
if ((lotm_ok && tm_ok)
? (delta(&tm, &lotm) == t - lot
&& tm.tm_isdst == lotm.tm_isdst
&& strcmp(abbr(&tm), ab) == 0)
: lotm_ok == tm_ok) {
for clarity? Both lotm_ok and tm_ok are booleans...
Thanks,
christos
More information about the tz
mailing list