projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: pass explicit type to std::min for 32-bit platforms
[lttng-tools.git]
/
src
/
bin
/
lttng-relayd
/
main.cpp
diff --git
a/src/bin/lttng-relayd/main.cpp
b/src/bin/lttng-relayd/main.cpp
index 4b7726d4e61b6466616d3e9242f2325cf871a357..1da83086e82b4d7107fc4d36e5c97d1cf173b388 100644
(file)
--- a/
src/bin/lttng-relayd/main.cpp
+++ b/
src/bin/lttng-relayd/main.cpp
@@
-3629,7
+3629,7
@@
static enum relay_connection_status relay_process_data_receive_payload(
* - the on-stack data buffer
*/
while (left_to_receive > 0 && !partial_recv) {
* - the on-stack data buffer
*/
while (left_to_receive > 0 && !partial_recv) {
- size_t recv_size = std::min(left_to_receive, chunk_size);
+ size_t recv_size = std::min
<uint64_t>
(left_to_receive, chunk_size);
struct lttng_buffer_view packet_chunk;
ret = conn->sock->ops->recvmsg(conn->sock, data_buffer,
struct lttng_buffer_view packet_chunk;
ret = conn->sock->ops->recvmsg(conn->sock, data_buffer,
This page took
0.023125 seconds
and
4
git commands to generate.