Changeset 56432 in webkit for trunk/JavaScriptCore/runtime


Ignore:
Timestamp:
Mar 23, 2010, 8:17:44 PM (15 years ago)
Author:
[email protected]
Message:

Build fix.

  • runtime/ArrayPrototype.cpp:

(JSC::arrayProtoFuncSplice): Some versions of GCC emit a warning about the implicit 64- to 32-bit truncation
that takes place here. An explicit cast is sufficient to silence it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/runtime/ArrayPrototype.cpp

    r56427 r56432  
    519519        begin = (relativeBegin < 0) ? 0 : static_cast<unsigned>(relativeBegin);
    520520    } else
    521         begin = std::min<unsigned>(relativeBegin, length);
     521        begin = std::min<unsigned>(static_cast<unsigned>(relativeBegin), length);
    522522
    523523    unsigned deleteCount;
Note: See TracChangeset for help on using the changeset viewer.