Changeset 53397 in webkit


Ignore:
Timestamp:
Jan 18, 2010 1:54:51 AM (14 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):

Location:
trunk/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r53392 r53397  
     12010-01-18  Simon Hausmann  <simon.hausmann@nokia.com>
     2
     3        Reviewed by Kenneth Rohde Christiansen.
     4
     5        Fix the build with strict gcc and RVCT versions: It's not legal to cast a
     6        pointer to a function to a void* without an intermediate cast to a non-pointer
     7        type. A cast to a ptrdiff_t inbetween fixes it.
     8
     9        * runtime/JSString.h:
     10        (JSC::Fiber::JSString):
     11
    1122010-01-15  Gavin Barraclough  <barraclough@apple.com>
    213
  • 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.