From: Steinar H. Gunderson Date: Sat, 22 Dec 2018 00:26:28 +0000 (+0100) Subject: Fix an ineffective assert. X-Git-Tag: 1.4.3~6 X-Git-Url: https://git.sesse.net/?p=cubemap;a=commitdiff_plain;h=5ee2e95320160f0d01a9af5cea5c799c3ce1eaa9 Fix an ineffective assert. Found by Coverity Scan. --- 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) {