Title: [176805] trunk/Source/WTF
Revision
176805
Author
[email protected]
Date
2014-12-04 11:22:35 -0800 (Thu, 04 Dec 2014)

Log Message

Fix cast-align warning in StringImpl.h
https://bugs.webkit.org/show_bug.cgi?id=139222

Reviewed by Anders Carlsson.

* wtf/text/StringImpl.h:
(WTF::StringImpl::tailPointer):

Modified Paths

Diff

Modified: trunk/Source/WTF/ChangeLog (176804 => 176805)


--- trunk/Source/WTF/ChangeLog	2014-12-04 19:21:13 UTC (rev 176804)
+++ trunk/Source/WTF/ChangeLog	2014-12-04 19:22:35 UTC (rev 176805)
@@ -1,3 +1,13 @@
+2014-12-04  Csaba Osztrogonác  <[email protected]>
+
+        Fix cast-align warning in StringImpl.h
+        https://bugs.webkit.org/show_bug.cgi?id=139222
+
+        Reviewed by Anders Carlsson.
+
+        * wtf/text/StringImpl.h:
+        (WTF::StringImpl::tailPointer):
+
 2014-12-02  Mark Lam  <[email protected]>
 
         Rolling out r176592, r176603, r176616, and r176705 until build and perf issues are resolved.

Modified: trunk/Source/WTF/wtf/text/StringImpl.h (176804 => 176805)


--- trunk/Source/WTF/wtf/text/StringImpl.h	2014-12-04 19:21:13 UTC (rev 176804)
+++ trunk/Source/WTF/wtf/text/StringImpl.h	2014-12-04 19:22:35 UTC (rev 176805)
@@ -740,13 +740,13 @@
     template<typename T>
     const T* tailPointer() const
     {
-        return reinterpret_cast<const T*>(reinterpret_cast<const uint8_t*>(this) + tailOffset<T>());
+        return reinterpret_cast_ptr<const T*>(reinterpret_cast<const uint8_t*>(this) + tailOffset<T>());
     }
 
     template<typename T>
     T* tailPointer()
     {
-        return reinterpret_cast<T*>(reinterpret_cast<uint8_t*>(this) + tailOffset<T>());
+        return reinterpret_cast_ptr<T*>(reinterpret_cast<uint8_t*>(this) + tailOffset<T>());
     }
 
     StringImpl* const& substringBuffer() const
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to