mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Use a pair of parentheses to ensure right evaluation order.
This commit is contained in:
parent
682b64839a
commit
a2d5d610cb
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue