Reviewers: Søren Gjesse, Oleg,

Description:
Add parens to DateYMDFromTimeSlow to clearify.

BUG=649

Please review this at http://codereview.chromium.org/1132002

SVN Base: http://v8.googlecode.com/svn/branches/bleeding_edge/

Affected files:
  M     src/runtime.cc


Index: src/runtime.cc
===================================================================
--- src/runtime.cc      (revision 4186)
+++ src/runtime.cc      (working copy)
@@ -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