From 5ee2e95320160f0d01a9af5cea5c799c3ce1eaa9 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sat, 22 Dec 2018 01:26:28 +0100 Subject: [PATCH] Fix an ineffective assert. Found by Coverity Scan. --- server.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.cpp b/server.cpp index 81109d6..5c1f31b 100644 --- a/server.cpp +++ b/server.cpp @@ -649,7 +649,7 @@ sending_header_or_short_response_again: } else if (client->stream_pos_end != Client::STREAM_POS_NO_END) { // We're sending a fragment, and should have all of it, // so start sending right away. - assert(client->stream_pos >= 0); + assert(ssize_t(client->stream_pos) >= 0); client->state = Client::SENDING_DATA; goto sending_data; } else if (stream->prebuffering_bytes == 0) { -- 2.39.2