Changeset 53397 in webkit for trunk/JavaScriptCore/runtime


Ignore:
Timestamp:
Jan 18, 2010, 1:54:51 AM (16 years ago)
Author:
Simon Hausmann
Message:

Fix the build with strict gcc and RVCT versions: It's not legal to cast a
pointer to a function to a void* without an intermediate cast to a non-pointer
type. A cast to a ptrdiff_t inbetween fixes it.

Reviewed by Kenneth Rohde Christiansen.

  • runtime/JSString.h:

(JSC::Fiber::JSString):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/runtime/JSString.h

    r53371 r53397  
    259259        {
    260260            // nasty hack because we can't union non-POD types
    261             m_fibers[0] = reinterpret_cast<void*>(finalizer);
     261            m_fibers[0] = reinterpret_cast<void*>(reinterpret_cast<ptrdiff_t>(finalizer));
    262262            m_fibers[1] = context;
    263263            Heap::heap(this)->reportExtraMemoryCost(value.cost());
Note: See TracChangeset for help on using the changeset viewer.