Commit 364235e7 authored by Sergey Lyubka's avatar Sergey Lyubka

Squashed warning on windows

parent ba1f2ced
...@@ -4381,8 +4381,8 @@ static void process_new_connection(struct mg_connection *conn) { ...@@ -4381,8 +4381,8 @@ static void process_new_connection(struct mg_connection *conn) {
// Discard all buffered data for this request // Discard all buffered data for this request
discard_len = conn->content_len >= 0 && discard_len = conn->content_len >= 0 &&
conn->request_len + conn->content_len < conn->data_len ? conn->request_len + conn->content_len < (int64_t) conn->data_len ?
conn->request_len + conn->content_len : conn->data_len; (int) (conn->request_len + conn->content_len) : conn->data_len;
memmove(conn->buf, conn->buf + discard_len, conn->data_len - discard_len); memmove(conn->buf, conn->buf + discard_len, conn->data_len - discard_len);
conn->data_len -= discard_len; conn->data_len -= discard_len;
assert(conn->data_len >= 0); assert(conn->data_len >= 0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment