mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-30 17:23:35 +00:00
Use a pair of parentheses to ensure right evaluation order.
This commit is contained in:
parent
682b64839a
commit
a2d5d610cb
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=223923
@ -155,7 +155,7 @@ fpom(int year, double utcoffset, double *ffms, double *fnms)
|
||||
tomorrow = potm(days_tomorrow); /* 31 December 00:00:01 */
|
||||
olddir = today > tomorrow ? -1 : +1;
|
||||
|
||||
yeardays = 1 + isleap(year) ? DAYSPERLEAPYEAR : DAYSPERYEAR; /* reuse */
|
||||
yeardays = 1 + (isleap(year) ? DAYSPERLEAPYEAR : DAYSPERYEAR); /* reuse */
|
||||
for (d = 0; d <= yeardays; d++) {
|
||||
today = potm(days_today);
|
||||
tomorrow = potm(days_tomorrow);
|
||||
|
Loading…
Reference in New Issue
Block a user