Prevent "control reaches end of non-void function" warning from gcc on Mac.
Review URL: http://codereview.chromium.org/660379 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@4001 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
96ff21c703
commit
99e67e0e77
@ -4971,9 +4971,9 @@ static Object* Runtime_DateMakeDay(Arguments args) {
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user