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:
parent
4a9d4b7bd5
commit
d2061c07c8
@ -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));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user