Title: [109952] trunk/Source/_javascript_Core
Revision
109952
Author
[email protected]
Date
2012-03-06 12:50:12 -0800 (Tue, 06 Mar 2012)

Log Message

BlackBerry] Fix cast-align gcc warnings when compiling JSC
https://bugs.webkit.org/show_bug.cgi?id=80420

Reviewed by Gavin Barraclough.

Fix warnings given in Blackberry build.

* heap/CopiedBlock.h:
(JSC::CopiedBlock::CopiedBlock):
* wtf/RefCountedArray.h:
(WTF::RefCountedArray::Header::fromPayload):

Modified Paths

Diff

Modified: trunk/Source/_javascript_Core/ChangeLog (109951 => 109952)


--- trunk/Source/_javascript_Core/ChangeLog	2012-03-06 20:30:35 UTC (rev 109951)
+++ trunk/Source/_javascript_Core/ChangeLog	2012-03-06 20:50:12 UTC (rev 109952)
@@ -1,3 +1,17 @@
+2012-03-06  Rob Buis  <[email protected]>
+
+        BlackBerry] Fix cast-align gcc warnings when compiling JSC
+        https://bugs.webkit.org/show_bug.cgi?id=80420
+
+        Reviewed by Gavin Barraclough.
+
+        Fix warnings given in Blackberry build.
+
+        * heap/CopiedBlock.h:
+        (JSC::CopiedBlock::CopiedBlock):
+        * wtf/RefCountedArray.h:
+        (WTF::RefCountedArray::Header::fromPayload):
+
 2012-03-06  Gavin Barraclough  <[email protected]>
 
         writable/configurable not respected for some properties of Function/String/Arguments

Modified: trunk/Source/_javascript_Core/heap/CopiedBlock.h (109951 => 109952)


--- trunk/Source/_javascript_Core/heap/CopiedBlock.h	2012-03-06 20:30:35 UTC (rev 109951)
+++ trunk/Source/_javascript_Core/heap/CopiedBlock.h	2012-03-06 20:50:12 UTC (rev 109952)
@@ -49,7 +49,7 @@
         memset(static_cast<void*>(offset), 0, static_cast<size_t>((reinterpret_cast<char*>(this) + allocation.size()) - offset));
 #else
         JSValue emptyValue;
-        JSValue* limit = reinterpret_cast<JSValue*>(reinterpret_cast<char*>(this) + allocation.size());
+        JSValue* limit = reinterpret_cast_ptr<JSValue*>(reinterpret_cast<char*>(this) + allocation.size());
         for (JSValue* currentValue = reinterpret_cast<JSValue*>(m_offset); currentValue < limit; currentValue++)
             *currentValue = emptyValue;
 #endif

Modified: trunk/Source/_javascript_Core/wtf/RefCountedArray.h (109951 => 109952)


--- trunk/Source/_javascript_Core/wtf/RefCountedArray.h	2012-03-06 20:30:35 UTC (rev 109951)
+++ trunk/Source/_javascript_Core/wtf/RefCountedArray.h	2012-03-06 20:50:12 UTC (rev 109952)
@@ -150,7 +150,7 @@
         
         static Header* fromPayload(T* payload)
         {
-            return reinterpret_cast<Header*>(reinterpret_cast<char*>(payload) - size());
+            return reinterpret_cast_ptr<Header*>(reinterpret_cast<char*>(payload) - size());
         }
     };
     
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to