From 2a7a594b493b5570ce98afeb4572a366291059b3 Mon Sep 17 00:00:00 2001 From: Sergey Lyubka Date: Tue, 25 Sep 2012 12:35:30 +0100 Subject: [PATCH] Squashed warning under linux --- mongoose.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mongoose.c b/mongoose.c index 8ebb82ef..f79bedd1 100644 --- a/mongoose.c +++ b/mongoose.c @@ -1530,7 +1530,7 @@ int mg_write(struct mg_connection *conn, const void *buf, size_t len) { conn->last_throttle_bytes += total; while (total < (int64_t) len && conn->ctx->stop_flag == 0) { allowed = conn->throttle > (int64_t) len - total ? - len - total : conn->throttle; + (int64_t) len - total : conn->throttle; if ((n = push(NULL, conn->client.sock, conn->ssl, (const char *) buf, (int64_t) allowed)) != allowed) { break;