From fd731dfd6e79bc7bc51e8bec83f3bfae6eb2585f Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Thu, 2 Aug 2012 00:27:18 -0400 Subject: [PATCH] Bug - Fixed ambiguous operator precedence in unit test. --- test/date.t.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/date.t.cpp b/test/date.t.cpp index be8aea22a..59b39b25b 100644 --- a/test/date.t.cpp +++ b/test/date.t.cpp @@ -367,8 +367,8 @@ int main (int argc, char** argv) // Note: these fail during the night of daylight savings end. t.ok (soq.sameYear (now) || - now.month () >= 10 && - soq.year () == now.year () + 1, "soq is in same year as now"); + (now.month () >= 10 && + soq.year () == now.year () + 1), "soq is in same year as now"); t.ok (eoq.sameYear (now), "eoq is in same year as now"); // Date::sameHour