Revision: 4188
Author: [email protected]
Date: Fri Mar 19 01:00:52 2010
Log: Add parens to DateYMDFromTimeSlow to clearify.

BUG=649
Review URL: http://codereview.chromium.org/1132002
http://code.google.com/p/v8/source/detail?r=4188

Modified:
 /branches/bleeding_edge/src/runtime.cc

=======================================
--- /branches/bleeding_edge/src/runtime.cc      Thu Mar 18 06:00:57 2010
+++ /branches/bleeding_edge/src/runtime.cc      Fri Mar 19 01:00:52 2010
@@ -5731,11 +5731,11 @@
   bool is_leap = (!yd1 || yd2) && !yd3;

   ASSERT(date >= -1);
-  ASSERT(is_leap || date >= 0);
-  ASSERT(date < 365 || is_leap && date < 366);
-  ASSERT(is_leap == (year % 4 == 0 && (year % 100 || (year % 400 == 0))));
-  ASSERT(is_leap || MakeDay(year, 0, 1) + date == save_date);
-  ASSERT(!is_leap || MakeDay(year, 0, 1) + date + 1 == save_date);
+  ASSERT(is_leap || (date >= 0));
+  ASSERT((date < 365) || (is_leap && (date < 366)));
+ ASSERT(is_leap == ((year % 4 == 0) && (year % 100 || (year % 400 == 0))));
+  ASSERT(is_leap || ((MakeDay(year, 0, 1) + date) == save_date));
+  ASSERT(!is_leap || ((MakeDay(year, 0, 1) + date + 1) == save_date));

   if (is_leap) {
     day = kDayInYear[2*365 + 1 + date];

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

To unsubscribe from this group, send email to v8-dev+unsubscribegooglegroups.com or reply 
to this email with the words "REMOVE ME" as the subject.

Reply via email to