fixed warning
Costa Tsaousis committed
Dec 30, 2015 at 06:02 UTC
0d7585f0cae18ffd49e9fd0e794023267301586e
1 file changed
+1
-1
src/web_client.c
+1
-1
@@ -1480,7 +1480,7 @@ long web_client_send_deflate(struct web_client *w)
1480
// give the compressor all the data not passed through the compressor yet
1481
if(w->response.data->len > w->response.sent) {
1482
#ifdef NETDATA_INTERNAL_CHECKS
1483
- if(w->response.sent - w->response.zstream.avail_in < 0)
1483
+ if((long)w->response.sent - (long)w->response.zstream.avail_in < 0)
1484
error("internal error: avail_in is corrupted.");
1485
#endif
1486
w->response.zstream.next_in = (Bytef *)&w->response.data->buffer[w->response.sent - w->response.zstream.avail_in];