Fix presubmit error.

TBR=whesse@chromium.org
Review URL: http://codereview.chromium.org/661090

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@3957 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
ager@chromium.org 2010-02-25 18:26:36 +00:00
parent 4a9d4b7bd5
commit d2061c07c8

View File

@ -4180,7 +4180,7 @@ static Object* Runtime_NumberToJSInt32(Arguments args) {
// We do not include 0 so that we don't have to treat +0 / -0 cases. // We do not include 0 so that we don't have to treat +0 / -0 cases.
if (number > 0 && number <= Smi::kMaxValue) { if (number > 0 && number <= Smi::kMaxValue) {
return Smi::FromInt(static_cast<int>(number)); return Smi::FromInt(static_cast<int>(number));
} }
return Heap::NumberFromInt32(DoubleToInt32(number)); return Heap::NumberFromInt32(DoubleToInt32(number));
} }