Title: [106574] trunk/Source/_javascript_Core
- Revision
- 106574
- Author
- [email protected]
- Date
- 2012-02-02 11:12:48 -0800 (Thu, 02 Feb 2012)
Log Message
Fix type punning warning in HashTable.h debug builds
https://bugs.webkit.org/show_bug.cgi?id=77422
Patch by Andy Wingo <[email protected]> on 2012-02-02
Reviewed by Gavin Barraclough.
* wtf/HashTable.h (WTF::HashTable::checkKey): Fix type punning
warning appearing in debug builds with gcc-4.6.2 on GNU/Linux.
Modified Paths
Diff
Modified: trunk/Source/_javascript_Core/ChangeLog (106573 => 106574)
--- trunk/Source/_javascript_Core/ChangeLog 2012-02-02 19:06:16 UTC (rev 106573)
+++ trunk/Source/_javascript_Core/ChangeLog 2012-02-02 19:12:48 UTC (rev 106574)
@@ -1,3 +1,13 @@
+2012-02-02 Andy Wingo <[email protected]>
+
+ Fix type punning warning in HashTable.h debug builds
+ https://bugs.webkit.org/show_bug.cgi?id=77422
+
+ Reviewed by Gavin Barraclough.
+
+ * wtf/HashTable.h (WTF::HashTable::checkKey): Fix type punning
+ warning appearing in debug builds with gcc-4.6.2 on GNU/Linux.
+
2012-02-01 Michael Saboff <[email protected]>
Yarr crash with regexp replace
Modified: trunk/Source/_javascript_Core/wtf/HashTable.h (106573 => 106574)
--- trunk/Source/_javascript_Core/wtf/HashTable.h 2012-02-02 19:06:16 UTC (rev 106573)
+++ trunk/Source/_javascript_Core/wtf/HashTable.h 2012-02-02 19:12:48 UTC (rev 106574)
@@ -478,7 +478,8 @@
return;
ASSERT(!HashTranslator::equal(KeyTraits::emptyValue(), key));
AlignedBuffer<sizeof(ValueType), WTF_ALIGN_OF(ValueType)> deletedValueBuffer;
- ValueType& deletedValue = *reinterpret_cast_ptr<ValueType*>(deletedValueBuffer.buffer);
+ ValueType* deletedValuePtr = reinterpret_cast_ptr<ValueType*>(deletedValueBuffer.buffer);
+ ValueType& deletedValue = *deletedValuePtr;
Traits::constructDeletedValue(deletedValue);
ASSERT(!HashTranslator::equal(Extractor::extract(deletedValue), key));
}
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes