Skip to content

Commit 8f29da8

Browse files
committed
Add patch for couchbase
1 parent 336637a commit 8f29da8

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
$path = 'src/deps/couchbase-cxx-client/core/websocket_codec.cxx'
2+
(Get-Content $path) `
3+
-replace 'static_cast<std::byte>\(\(length >> 56\) & 0xff\)', 'static_cast<std::byte>((static_cast<std::uint64_t>(length) >> 56) & 0xff)' `
4+
-replace 'static_cast<std::byte>\(\(length >> 48\) & 0xff\)', 'static_cast<std::byte>((static_cast<std::uint64_t>(length) >> 48) & 0xff)' `
5+
-replace 'static_cast<std::byte>\(\(length >> 40\) & 0xff\)', 'static_cast<std::byte>((static_cast<std::uint64_t>(length) >> 40) & 0xff)' `
6+
-replace 'static_cast<std::byte>\(\(length >> 32\) & 0xff\)', 'static_cast<std::byte>((static_cast<std::uint64_t>(length) >> 32) & 0xff)' `
7+
-replace 'static_cast<std::byte>\(\(length >> 24\) & 0xff\)', 'static_cast<std::byte>((static_cast<std::uint64_t>(length) >> 24) & 0xff)' `
8+
-replace 'static_cast<std::byte>\(\(length >> 16\) & 0xff\)', 'static_cast<std::byte>((static_cast<std::uint64_t>(length) >> 16) & 0xff)' `
9+
-replace 'static_cast<std::byte>\(\(length >> 8\) & 0xff\)', 'static_cast<std::byte>((static_cast<std::uint64_t>(length) >> 8) & 0xff)' `
10+
-replace 'static_cast<std::byte>\(length & 0xff\)', 'static_cast<std::byte>(static_cast<std::uint64_t>(length) & 0xff)' |
11+
Set-Content $path

0 commit comments

Comments
 (0)