Title: [144811] trunk/Source/WTF
Revision
144811
Author
[email protected]
Date
2013-03-05 13:41:22 -0800 (Tue, 05 Mar 2013)

Log Message

Fix cast-align warning in ASCIIFastPath.h on ARM
https://bugs.webkit.org/show_bug.cgi?id=111436

Reviewed by Benjamin Poulain.

* wtf/text/ASCIIFastPath.h:
(WTF::charactersAreAllASCII):

Modified Paths

Diff

Modified: trunk/Source/WTF/ChangeLog (144810 => 144811)


--- trunk/Source/WTF/ChangeLog	2013-03-05 21:38:29 UTC (rev 144810)
+++ trunk/Source/WTF/ChangeLog	2013-03-05 21:41:22 UTC (rev 144811)
@@ -1,3 +1,13 @@
+2013-03-05  Csaba Osztrogonác  <[email protected]>
+
+        Fix cast-align warning in ASCIIFastPath.h on ARM
+        https://bugs.webkit.org/show_bug.cgi?id=111436
+
+        Reviewed by Benjamin Poulain.
+
+        * wtf/text/ASCIIFastPath.h:
+        (WTF::charactersAreAllASCII):
+
 2013-03-04  Laszlo Gombos  <[email protected]>
 
         JSC_OBJC_API_ENABLED should be removed from FeatureDefines.h

Modified: trunk/Source/WTF/wtf/text/ASCIIFastPath.h (144810 => 144811)


--- trunk/Source/WTF/wtf/text/ASCIIFastPath.h	2013-03-05 21:38:29 UTC (rev 144810)
+++ trunk/Source/WTF/wtf/text/ASCIIFastPath.h	2013-03-05 21:41:22 UTC (rev 144811)
@@ -27,6 +27,7 @@
 #endif
 #include <stdint.h>
 #include <wtf/Alignment.h>
+#include <wtf/StdLibExtras.h>
 #include <wtf/unicode/Unicode.h>
 
 namespace WTF {
@@ -85,7 +86,7 @@
     const CharacterType* wordEnd = alignToMachineWord(end);
     const size_t loopIncrement = sizeof(MachineWord) / sizeof(CharacterType);
     while (characters < wordEnd) {
-        allCharBits |= *(reinterpret_cast<const MachineWord*>(characters));
+        allCharBits |= *(reinterpret_cast_ptr<const MachineWord*>(characters));
         characters += loopIncrement;
     }
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to