Fix: pass explicit type to std::min for 32-bit platforms
authorMichael Jeanson <mjeanson@efficios.com>
Thu, 18 Nov 2021 16:15:29 +0000 (11:15 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 18 Nov 2021 19:26:06 +0000 (14:26 -0500)
commitff2aa8f08b117f2a309ed49cf68b135f930093f8
treead77a66c3949b112a8196e32cf3dd4dfcf0b450e
parent9324443a0907d2bc9f2696ad00d2f9265422ef3d
Fix: pass explicit type to std::min for 32-bit platforms

Provide an explicit type to templates when comparing a 'uint64_t' with a
type that is less than 64-bits on 32-bit platforms.

  main.cpp: In function ‘relay_connection_status relay_process_data_receive_payload(relay_connection*)’:
  main.cpp:3632:44: error: no matching function for call to ‘min(uint64_t&, const size_t&)’
   3632 |                 size_t recv_size = std::min(left_to_receive, chunk_size);
        |                                    ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Change-Id: I8fe8725c5c888cce9c54d564bd668e9723c0f947
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-relayd/main.cpp
src/bin/lttng-relayd/stream.cpp
This page took 0.026177 seconds and 4 git commands to generate.