Skip to content
Permalink
Browse files
[GTK] Fails to build in i386: static assertion failed: divisor must b…
…e 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):

Canonical link: https://commits.webkit.org/234683@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@273643 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
bertogg committed Mar 1, 2021
1 parent 095a9ff commit da3dd961eddcf6e97dc787556601d68af4891d70
Showing 2 changed files with 11 additions and 1 deletion.
@@ -1,3 +1,13 @@
2021-03-01 Alberto Garcia <berto@igalia.com>

[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 <aperez@igalia.com>

[WPE][GTK] Bogus Response.{status,ok} for successful fetch() requests to a custom URI scheme handler
@@ -114,7 +114,7 @@ class StreamConnectionBuffer {
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;

0 comments on commit da3dd96

Please sign in to comment.