Ignore:
Timestamp:
Oct 4, 2011, 10:02:57 PM (14 years ago)
Author:
[email protected]
Message:

Build fix.

  • jit/JITStubs.cpp:

(JSC::DEFINE_STUB_FUNCTION): Use an explicit cast when shortening.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/jit/JITStubs.cpp

    r96673 r96677  
    36573657    if (scrutinee.isInt32())
    36583658        return codeBlock->immediateSwitchJumpTable(tableIndex).ctiForValue(scrutinee.asInt32()).executableAddress();
    3659     if (scrutinee.isDouble()) {
    3660         double value = scrutinee.asDouble();
    3661         int32_t int32Value = value;
    3662         if (int32Value == value)
    3663             return codeBlock->immediateSwitchJumpTable(tableIndex).ctiForValue(int32Value).executableAddress();
    3664     }
     3659    if (scrutinee.isDouble() && scrutinee.asDouble() == static_cast<int32_t>(scrutinee.asDouble()))
     3660            return codeBlock->immediateSwitchJumpTable(tableIndex).ctiForValue(static_cast<int32_t>(scrutinee.asDouble())).executableAddress();
    36653661    return codeBlock->immediateSwitchJumpTable(tableIndex).ctiDefault.executableAddress();
    36663662}
Note: See TracChangeset for help on using the changeset viewer.