Ignore:
Timestamp:
Feb 4, 2011, 12:12:42 AM (14 years ago)
Author:
[email protected]
Message:

Try to fix 32bit build.

  • runtime/Heap.cpp:

(JSC::Heap::reset): Use an explicit cast to avoid shortening warnings,
since 1.5 is double (64bit), and the result is size_t (32bit).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/runtime/Heap.cpp

    r77612 r77614  
    388388
    389389    size_t usedCellCount = m_markedSpace.markedCells();
    390     size_t proportionalBytes = usedCellCount * 1.5 * HeapConstants::cellSize;
     390    size_t proportionalBytes = static_cast<size_t>(usedCellCount * 1.5 * HeapConstants::cellSize);
    391391    m_markedSpace.setHighWaterMark(max(proportionalBytes, minBytesPerCycle));
    392392
Note: See TracChangeset for help on using the changeset viewer.