From 616283abe03ab020e688d09b95708ca5928075d3 Mon Sep 17 00:00:00 2001 From: "loki@webkit.org" Date: Wed, 8 Sep 2010 22:43:25 +0000 Subject: [PATCH 1/1] 2010-09-08 Gabor Loki 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 | 15 +++++++++++++++ WebCore/bindings/js/SerializedScriptValue.cpp | 4 ++-- WebCore/plugins/PluginDatabase.cpp | 2 +- 3 files changed, 18 insertions(+), 3 deletions(-) diff --git a/WebCore/ChangeLog b/WebCore/ChangeLog index d120862daeef..29f2c14e3ff9 100644 --- a/WebCore/ChangeLog +++ b/WebCore/ChangeLog @@ -1,3 +1,18 @@ +2010-09-08 Gabor Loki + + 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 Reviewed by Daniel Bates. diff --git a/WebCore/bindings/js/SerializedScriptValue.cpp b/WebCore/bindings/js/SerializedScriptValue.cpp index f2290888565d..fcd331469f2d 100644 --- a/WebCore/bindings/js/SerializedScriptValue.cpp +++ b/WebCore/bindings/js/SerializedScriptValue.cpp @@ -800,7 +800,7 @@ private: if (sizeof(T) == 1) value = *ptr++; else { - value = *reinterpret_cast(ptr); + value = *reinterpret_cast_ptr(ptr); ptr += sizeof(T); } return true; @@ -888,7 +888,7 @@ private: return false; #if ASSUME_LITTLE_ENDIAN - str = UString(reinterpret_cast(ptr), length); + str = UString(reinterpret_cast_ptr(ptr), length); ptr += length * sizeof(UChar); #else Vector buffer; diff --git a/WebCore/plugins/PluginDatabase.cpp b/WebCore/plugins/PluginDatabase.cpp index 46c7df70b0d6..d3e922a99c8f 100644 --- a/WebCore/plugins/PluginDatabase.cpp +++ b/WebCore/plugins/PluginDatabase.cpp @@ -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(start); + resultTime = *reinterpret_cast_ptr(start); start += sizeof(time_t); return true; -- 2.36.0