Revision: 4001
Author: [email protected]
Date: Tue Mar 2 06:44:01 2010
Log: Prevent "control reaches end of non-void function" warning from gcc on
Mac.
Review URL: http://codereview.chromium.org/660379
http://code.google.com/p/v8/source/detail?r=4001
Modified:
/branches/bleeding_edge/src/runtime.cc
=======================================
--- /branches/bleeding_edge/src/runtime.cc Tue Mar 2 06:19:34 2010
+++ /branches/bleeding_edge/src/runtime.cc Tue Mar 2 06:44:01 2010
@@ -4971,9 +4971,9 @@
if (year % 4 || (year % 100 == 0 && year % 400 != 0)) {
return Smi::FromInt(day_from_year + day_from_month[month] + date - 1);
- } else {
- return Smi::FromInt(day_from_year + day_from_month_leap[month] + date
- 1);
- }
+ }
+
+ return Smi::FromInt(day_from_year + day_from_month_leap[month] + date -
1);
}
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev