Author: delphij
Date: Mon Jul 11 05:40:46 2011
New Revision: 223923
URL: http://svn.freebsd.org/changeset/base/223923

Log:
  Use a pair of parentheses to ensure right evaluation order.

Modified:
  head/usr.bin/calendar/pom.c

Modified: head/usr.bin/calendar/pom.c
==============================================================================
--- head/usr.bin/calendar/pom.c Mon Jul 11 05:31:52 2011        (r223922)
+++ head/usr.bin/calendar/pom.c Mon Jul 11 05:40:46 2011        (r223923)
@@ -155,7 +155,7 @@ fpom(int year, double utcoffset, double 
        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);
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to