From 98820bb8870d3ea169bfd8c80589fd8286c111ce Mon Sep 17 00:00:00 2001 From: delphij Date: Mon, 11 Jul 2011 05:40:46 +0000 Subject: Use a pair of parentheses to ensure right evaluation order. --- usr.bin/calendar/pom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.bin') 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); -- cgit v1.1