Revision: 3956
Author: [email protected]
Date: Thu Feb 25 10:19:12 2010
Log: Fix the mac debug build. Apparently g++ on Mac cannot figure out that there
is a return in each branch of an if-else.

[email protected]
Review URL: http://codereview.chromium.org/661088
http://code.google.com/p/v8/source/detail?r=3956

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

=======================================
--- /branches/bleeding_edge/src/runtime.cc      Thu Feb 25 08:46:37 2010
+++ /branches/bleeding_edge/src/runtime.cc      Thu Feb 25 10:19:12 2010
@@ -4157,9 +4157,8 @@
   // We do not include 0 so that we don't have to treat +0 / -0 cases.
   if (number > 0 && number <= Smi::kMaxValue) {
     return Smi::FromInt(static_cast<int>(number));
-  } else {
-    return Heap::NumberFromDouble(DoubleToInteger(number));
-  }
+  }
+  return Heap::NumberFromDouble(DoubleToInteger(number));
 }


@@ -4181,9 +4180,8 @@
   // We do not include 0 so that we don't have to treat +0 / -0 cases.
   if (number > 0 && number <= Smi::kMaxValue) {
     return Smi::FromInt(static_cast<int>(number));
-  } else {
-    return Heap::NumberFromInt32(DoubleToInt32(number));
-  }
+  }
+  return Heap::NumberFromInt32(DoubleToInt32(number));
 }


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

Reply via email to