Title: [152349] trunk/Source/WTF
- Revision
- 152349
- Author
- [email protected]
- Date
- 2013-07-03 03:19:14 -0700 (Wed, 03 Jul 2013)
Log Message
Fix cast-align warnings in FastMalloc.cpp
https://bugs.webkit.org/show_bug.cgi?id=117991
Reviewed by Mark Hahnenberg.
* wtf/FastMalloc.cpp:
Modified Paths
Diff
Modified: trunk/Source/WTF/ChangeLog (152348 => 152349)
--- trunk/Source/WTF/ChangeLog 2013-07-03 10:13:34 UTC (rev 152348)
+++ trunk/Source/WTF/ChangeLog 2013-07-03 10:19:14 UTC (rev 152349)
@@ -1,3 +1,12 @@
+2013-07-03 Csaba Osztrogonác <[email protected]>
+
+ Fix cast-align warnings in FastMalloc.cpp
+ https://bugs.webkit.org/show_bug.cgi?id=117991
+
+ Reviewed by Mark Hahnenberg.
+
+ * wtf/FastMalloc.cpp:
+
2013-07-02 Geoffrey Garen <[email protected]>
plainText() is O(N^2)
Modified: trunk/Source/WTF/wtf/FastMalloc.cpp (152348 => 152349)
--- trunk/Source/WTF/wtf/FastMalloc.cpp 2013-07-03 10:13:34 UTC (rev 152348)
+++ trunk/Source/WTF/wtf/FastMalloc.cpp 2013-07-03 10:19:14 UTC (rev 152349)
@@ -586,12 +586,12 @@
#define POISON_DEALLOCATION_EXPLICIT(allocation, allocationSize, startPoison, endPoison) do { \
ASSERT((allocationSize) >= 2 * sizeof(uint32_t)); \
- reinterpret_cast<uint32_t*>(allocation)[0] = 0xbadbeef9; \
- reinterpret_cast<uint32_t*>(allocation)[1] = 0xbadbeefb; \
+ reinterpret_cast_ptr<uint32_t*>(allocation)[0] = 0xbadbeef9; \
+ reinterpret_cast_ptr<uint32_t*>(allocation)[1] = 0xbadbeefb; \
if ((allocationSize) < 4 * sizeof(uint32_t)) \
break; \
- reinterpret_cast<uint32_t*>(allocation)[2] = (startPoison) ^ PTR_TO_UINT32(allocation); \
- reinterpret_cast<uint32_t*>(allocation)[END_POISON_INDEX(allocationSize)] = (endPoison) ^ PTR_TO_UINT32(allocation); \
+ reinterpret_cast_ptr<uint32_t*>(allocation)[2] = (startPoison) ^ PTR_TO_UINT32(allocation); \
+ reinterpret_cast_ptr<uint32_t*>(allocation)[END_POISON_INDEX(allocationSize)] = (endPoison) ^ PTR_TO_UINT32(allocation); \
} while (false)
#define POISON_DEALLOCATION(allocation, allocationSize) \
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes