Changeset 52918 in webkit


Ignore:
Timestamp:
Jan 7, 2010 4:13:53 AM (14 years ago)
Author:
zoltan@webkit.org
Message:

2010-01-07 Zoltan Horvath <zoltan@webkit.org>

Reviewed by Holger Freyther.

[Mac] Build fix when FAST_MALLOC_MATCH_VALIDATION=1
https://bugs.webkit.org/show_bug.cgi?id=33312

Using of operator += cause compile error on Mac, so it is changed to
"= static_cast<AllocAlignmentInteger*>(old_ptr) + 1".

  • wtf/FastMalloc.cpp: (WTF::TCMallocStats::realloc):
Location:
trunk/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r52911 r52918  
     12010-01-07  Zoltan Horvath  <zoltan@webkit.org>
     2
     3        Reviewed by Holger Freyther.
     4
     5        [Mac] Build fix when FAST_MALLOC_MATCH_VALIDATION=1
     6        https://bugs.webkit.org/show_bug.cgi?id=33312
     7
     8        Using of operator += cause compile error on Mac, so it is changed to
     9        "= static_cast<AllocAlignmentInteger*>(old_ptr) + 1".
     10
     11        * wtf/FastMalloc.cpp:
     12        (WTF::TCMallocStats::realloc):
     13
    1142010-01-07  Zoltan Horvath  <zoltan@webkit.org>
    215
  • trunk/JavaScriptCore/wtf/FastMalloc.cpp

    r52911 r52918  
    37963796  } else {
    37973797#if ENABLE(FAST_MALLOC_MATCH_VALIDATION)
    3798     old_ptr += sizeof(AllocAlignmentInteger); // Set old_ptr back to the user pointer.
     3798    old_ptr = static_cast<AllocAlignmentInteger*>(old_ptr) + 1; // Set old_ptr back to the user pointer.
    37993799#endif
    38003800    return old_ptr;
Note: See TracChangeset for help on using the changeset viewer.