From a2d5d610cbd7fca6d125ea47b39d1be6229392b8 Mon Sep 17 00:00:00 2001 From: Xin LI Date: Mon, 11 Jul 2011 05:40:46 +0000 Subject: [PATCH] Use a pair of parentheses to ensure right evaluation order. --- usr.bin/calendar/pom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/calendar/pom.c b/usr.bin/calendar/pom.c index 89d06a2a583d..671763a76b73 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);