Changeset 152349 in webkit


Ignore:
Timestamp:
Jul 3, 2013 3:19:14 AM (11 years ago)
Author:
Csaba Osztrogonác
Message:

Fix cast-align warnings in FastMalloc.cpp
https://bugs.webkit.org/show_bug.cgi?id=117991

Reviewed by Mark Hahnenberg.

  • wtf/FastMalloc.cpp:
Location:
trunk/Source/WTF
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WTF/ChangeLog

    r152306 r152349  
     12013-07-03  Csaba Osztrogonác  <ossy@webkit.org>
     2
     3        Fix cast-align warnings in FastMalloc.cpp
     4        https://bugs.webkit.org/show_bug.cgi?id=117991
     5
     6        Reviewed by Mark Hahnenberg.
     7
     8        * wtf/FastMalloc.cpp:
     9
    1102013-07-02  Geoffrey Garen  <ggaren@apple.com>
    211
  • trunk/Source/WTF/wtf/FastMalloc.cpp

    r151020 r152349  
    587587#define POISON_DEALLOCATION_EXPLICIT(allocation, allocationSize, startPoison, endPoison) do { \
    588588    ASSERT((allocationSize) >= 2 * sizeof(uint32_t)); \
    589     reinterpret_cast<uint32_t*>(allocation)[0] = 0xbadbeef9; \
    590     reinterpret_cast<uint32_t*>(allocation)[1] = 0xbadbeefb; \
     589    reinterpret_cast_ptr<uint32_t*>(allocation)[0] = 0xbadbeef9; \
     590    reinterpret_cast_ptr<uint32_t*>(allocation)[1] = 0xbadbeefb; \
    591591    if ((allocationSize) < 4 * sizeof(uint32_t)) \
    592592        break; \
    593     reinterpret_cast<uint32_t*>(allocation)[2] = (startPoison) ^ PTR_TO_UINT32(allocation); \
    594     reinterpret_cast<uint32_t*>(allocation)[END_POISON_INDEX(allocationSize)] = (endPoison) ^ PTR_TO_UINT32(allocation); \
     593    reinterpret_cast_ptr<uint32_t*>(allocation)[2] = (startPoison) ^ PTR_TO_UINT32(allocation); \
     594    reinterpret_cast_ptr<uint32_t*>(allocation)[END_POISON_INDEX(allocationSize)] = (endPoison) ^ PTR_TO_UINT32(allocation); \
    595595} while (false)
    596596
Note: See TracChangeset for help on using the changeset viewer.