Skip to content
This repository was archived by the owner on Aug 30, 2022. It is now read-only.

Commit 29e04be

Browse files
vadorovskyisaachier
authored andcommitted
Fix -Werror=sign-compare warning (#106)
Cast the numWritten variable to unsigned type - we expect it to be positive. Signed-off-by: Michal Rostecki <[email protected]>
1 parent 6bf6e5b commit 29e04be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jaegertracing/utils/UDPClient.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class UDPClient : public agent::thrift::AgentIf {
6060
throw std::logic_error(oss.str());
6161
}
6262
const auto numWritten = ::write(_socket.handle(), data, size);
63-
if (numWritten != size) {
63+
if (static_cast<unsigned>(numWritten) != size) {
6464
std::ostringstream oss;
6565
oss << "Failed to write message"
6666
", numWritten="

0 commit comments

Comments
 (0)