Skip to content

Commit 9424f0a

Browse files
author
Tor Didriksen
committed
Bug#37385923 routertest_integration_routing_sharing select_overlong times out
Post-push fix for broken windows build: error C2672: 'std::min': no matching overloaded function found std::min(sz, 16UL * 1024); is rejected on Win std::min(sz, 16ULL * 1024); is rejected on macOS so we must static_cast it to size_t; Change-Id: I2ab832fe2cb011de9e0a05098638c3b7aad0da8a (cherry picked from commit ca68e0116d792eac697a346dd843fdd4bd00c967) (cherry picked from commit 049aa2afbe6894abce4043b6960884d80bc994b6)
1 parent 3737c08 commit 9424f0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

router/src/routing/src/channel.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ stdx::expected<size_t, std::error_code> Channel::read_to_plain(size_t sz) {
241241
// 1k | 2100ms | 256ms
242242
// 16k | 1966ms | 219ms
243243
// 256k | *6509ms* | 189ms
244-
const size_t to_read = std::min(sz, 16UL * 1024);
244+
const size_t to_read = std::min(sz, static_cast<size_t>(16UL * 1024));
245245

246246
auto dyn_buf = net::dynamic_buffer(plain_buf);
247247

0 commit comments

Comments
 (0)