summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2011-07-11 05:40:46 +0000
committerdelphij <delphij@FreeBSD.org>2011-07-11 05:40:46 +0000
commit98820bb8870d3ea169bfd8c80589fd8286c111ce (patch)
tree821df8369ce35b0a4191f2d767ac49ed0b4c9a19 /usr.bin
parentd352e8628e0818b72aff4c4d5ee62bdedd753de7 (diff)
downloadFreeBSD-src-98820bb8870d3ea169bfd8c80589fd8286c111ce.zip
FreeBSD-src-98820bb8870d3ea169bfd8c80589fd8286c111ce.tar.gz
Use a pair of parentheses to ensure right evaluation order.
Diffstat (limited to 'usr.bin')
-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