Ticket #57751: patch-src_3rdparty_javascriptcore_JavaScriptCore_runtime_Structure_cpp

File patch-src_3rdparty_javascriptcore_JavaScriptCore_runtime_Structure_cpp, 937 bytes (added by devernay (Frédéric Devernay), 5 years ago)
Line 
1$OpenBSD$
2
3Prevent "error: cannot bind bitfield..." in gcc 6.                             
4https://bugs.webkit.org/show_bug.cgi?id=59261                                 
5
6Index: src/3rdparty/javascriptcore/JavaScriptCore/runtime/Structure.cpp
7--- src/3rdparty/javascriptcore/JavaScriptCore/runtime/Structure.cpp.orig
8+++ src/3rdparty/javascriptcore/JavaScriptCore/runtime/Structure.cpp
9@@ -157,7 +157,7 @@ Structure::~Structure()
10 {
11     if (m_previous) {
12         if (m_nameInPrevious)
13-            m_previous->table.remove(StructureTransitionTableHash::Key(RefPtr<UString::Rep>(m_nameInPrevious.get()), m_attributesInPrevious), m_specificValueInPrevious);
14+            m_previous->table.remove(StructureTransitionTableHash::Key(RefPtr<UString::Rep>(m_nameInPrevious.get()), +m_attributesInPrevious), m_specificValueInPrevious);
15         else
16             m_previous->table.removeAnonymousSlotTransition(m_anonymousSlotsInPrevious);
17