From 347a249d1023cf3ee47fce0aafe2b69a97af7ba4 Mon Sep 17 00:00:00 2001 From: Massimo Callegari <massimocallegari@yahoo.it> Date: Sat, 30 Aug 2014 13:04:11 +0200 Subject: [PATCH] Fixed build warning of signed/unsigned conditional expression --- mongoose.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mongoose.c b/mongoose.c index 1e46af367..e8bbe5354 100644 --- a/mongoose.c +++ b/mongoose.c @@ -3556,7 +3556,7 @@ static void handle_put(struct connection *conn, const char *path) { static void forward_put_data(struct connection *conn) { struct iobuf *io = &conn->ns_conn->recv_iobuf; - size_t k = conn->cl < (int64_t) io->len ? conn->cl : io->len; // To write + size_t k = conn->cl < (int64_t) io->len ? conn->cl : (int64_t) io->len; // To write int n = write(conn->endpoint.fd, io->buf, k); // Write them! if (n > 0) { iobuf_remove(io, n); -- GitLab