Ticket #57751: patch-src_3rdparty_javascriptcore_JavaScriptCore_runtime_Structure_h

File patch-src_3rdparty_javascriptcore_JavaScriptCore_runtime_Structure_h, 988 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.h
7--- src/3rdparty/javascriptcore/JavaScriptCore/runtime/Structure.h.orig
8+++ src/3rdparty/javascriptcore/JavaScriptCore/runtime/Structure.h
9@@ -317,7 +317,7 @@ namespace JSC {
10         TransitionTable* transitionTable = new TransitionTable;
11         setTransitionTable(transitionTable);
12         if (existingTransition)
13-            add(StructureTransitionTableHash::Key(RefPtr<UString::Rep>(existingTransition->m_nameInPrevious.get()), existingTransition->m_attributesInPrevious), existingTransition, existingTransition->m_specificValueInPrevious);
14+            add(StructureTransitionTableHash::Key(RefPtr<UString::Rep>(existingTransition->m_nameInPrevious.get()), +existingTransition->m_attributesInPrevious), existingTransition, existingTransition->m_specificValueInPrevious);
15     }
16 } // namespace JSC
17