mirror of
https://github.com/cesanta/mongoose.git
synced 2024-11-24 19:19:00 +08:00
Squashed warning on windows
This commit is contained in:
parent
ba1f2ced8e
commit
364235e7ae
@ -4381,8 +4381,8 @@ static void process_new_connection(struct mg_connection *conn) {
|
||||
|
||||
// Discard all buffered data for this request
|
||||
discard_len = conn->content_len >= 0 &&
|
||||
conn->request_len + conn->content_len < conn->data_len ?
|
||||
conn->request_len + conn->content_len : conn->data_len;
|
||||
conn->request_len + conn->content_len < (int64_t) 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);
|
||||
conn->data_len -= discard_len;
|
||||
assert(conn->data_len >= 0);
|
||||
|
Loading…
Reference in New Issue
Block a user