summaryrefslogtreecommitdiffstats
path: root/usr.bin/calendar/pom.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/calendar/pom.c')
-rw-r--r--usr.bin/calendar/pom.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/calendar/pom.c b/usr.bin/calendar/pom.c
index 89d06a2..671763a 100644
--- a/usr.bin/calendar/pom.c
+++ b/usr.bin/calendar/pom.c
@@ -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);
OpenPOWER on IntegriCloud