2010-09-08 Gabor Loki <loki@webkit.org>
authorloki@webkit.org <loki@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 8 Sep 2010 22:43:25 +0000 (22:43 +0000)
committerloki@webkit.org <loki@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 8 Sep 2010 22:43:25 +0000 (22:43 +0000)
        Reviewed by Andreas Kling.

        Fix increases required alignment of target type warning on ARM
        https://bugs.webkit.org/show_bug.cgi?id=45301

        No new tests needed.

        * bindings/js/SerializedScriptValue.cpp:
        (WebCore::CloneDeserializer::readLittleEndian):
        (WebCore::CloneDeserializer::readString):
        * plugins/PluginDatabase.cpp:
        (WebCore::readTime):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@67028 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog
WebCore/bindings/js/SerializedScriptValue.cpp
WebCore/plugins/PluginDatabase.cpp

index d120862daeefec4687ef21050fee18c020ee7ff0..29f2c14e3ff9b98f3389f3e3392f0e0cf391dc45 100644 (file)
@@ -1,3 +1,18 @@
+2010-09-08  Gabor Loki  <loki@webkit.org>
+
+        Reviewed by Andreas Kling.
+
+        Fix increases required alignment of target type warning on ARM
+        https://bugs.webkit.org/show_bug.cgi?id=45301
+
+        No new tests needed.
+
+        * bindings/js/SerializedScriptValue.cpp:
+        (WebCore::CloneDeserializer::readLittleEndian):
+        (WebCore::CloneDeserializer::readString):
+        * plugins/PluginDatabase.cpp:
+        (WebCore::readTime):
+
 2010-09-08  Antonio Gomes  <agomes@rim.com>
 
         Reviewed by Daniel Bates.
index f2290888565d997879ce34587098b9666d26222e..fcd331469f2d7262cba817228d00f4e725c4d754 100644 (file)
@@ -800,7 +800,7 @@ private:
         if (sizeof(T) == 1)
             value = *ptr++;
         else {
-            value = *reinterpret_cast<const T*>(ptr);
+            value = *reinterpret_cast_ptr<const T*>(ptr);
             ptr += sizeof(T);
         }
         return true;
@@ -888,7 +888,7 @@ private:
             return false;
 
 #if ASSUME_LITTLE_ENDIAN
-        str = UString(reinterpret_cast<const UChar*>(ptr), length);
+        str = UString(reinterpret_cast_ptr<const UChar*>(ptr), length);
         ptr += length * sizeof(UChar);
 #else
         Vector<UChar> buffer;
index 46c7df70b0d63a6b37e695a179bf3a94ddec26c6..d3e922a99c8ff888f6e4495803a36590e624ffa1 100644 (file)
@@ -507,7 +507,7 @@ static bool readTime(time_t& resultTime, char*& start, const char* end)
     if (start + sizeof(time_t) >= end)
         return false;
 
-    resultTime = *reinterpret_cast<time_t*>(start);
+    resultTime = *reinterpret_cast_ptr<time_t*>(start);
     start += sizeof(time_t);
 
     return true;