Title: [273643] trunk/Source/WebKit
Revision
273643
Author
[email protected]
Date
2021-03-01 01:42:06 -0800 (Mon, 01 Mar 2021)

Log Message

[GTK] Fails to build in i386: static assertion failed: divisor must be a power of two
https://bugs.webkit.org/show_bug.cgi?id=222480

Reviewed by Carlos Garcia Campos.

* Platform/IPC/StreamConnectionBuffer.h:
(IPC::StreamConnectionBuffer::headerSize):

Modified Paths

Diff

Modified: trunk/Source/WebKit/ChangeLog (273642 => 273643)


--- trunk/Source/WebKit/ChangeLog	2021-03-01 02:26:00 UTC (rev 273642)
+++ trunk/Source/WebKit/ChangeLog	2021-03-01 09:42:06 UTC (rev 273643)
@@ -1,3 +1,13 @@
+2021-03-01  Alberto Garcia  <[email protected]>
+
+        [GTK] Fails to build in i386: static assertion failed: divisor must be a power of two
+        https://bugs.webkit.org/show_bug.cgi?id=222480
+
+        Reviewed by Carlos Garcia Campos.
+
+        * Platform/IPC/StreamConnectionBuffer.h:
+        (IPC::StreamConnectionBuffer::headerSize):
+
 2021-02-26  Adrian Perez de Castro  <[email protected]>
 
         [WPE][GTK] Bogus Response.{status,ok} for successful fetch() requests to a custom URI scheme handler

Modified: trunk/Source/WebKit/Platform/IPC/StreamConnectionBuffer.h (273642 => 273643)


--- trunk/Source/WebKit/Platform/IPC/StreamConnectionBuffer.h	2021-03-01 02:26:00 UTC (rev 273642)
+++ trunk/Source/WebKit/Platform/IPC/StreamConnectionBuffer.h	2021-03-01 09:42:06 UTC (rev 273643)
@@ -114,7 +114,7 @@
         alignas(sizeof(uint64_t[2])) Atomic<size_t> senderOffset;
     };
     Header& header() const { return *reinterpret_cast<Header*>(m_sharedMemory->data()); }
-    static constexpr size_t headerSize() { return roundUpToMultipleOf<sizeof(std::max_align_t)>(sizeof(Header)); }
+    static constexpr size_t headerSize() { return roundUpToMultipleOf<alignof(std::max_align_t)>(sizeof(Header)); }
 
     size_t m_dataSize { 0 };
     Ref<WebKit::SharedMemory> m_sharedMemory;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to