diff --git a/build/src/io.c b/build/src/io.c index 8d92fff4..65657ff8 100644 --- a/build/src/io.c +++ b/build/src/io.c @@ -125,8 +125,8 @@ int mg_read(struct mg_connection *conn, void *buf, int len) { } int mg_write(struct mg_connection *conn, const void *buf, int len) { - return push(NULL, conn->client.sock, conn->ssl, (const char *) buf, - (int64_t) len); + return (int) push(NULL, conn->client.sock, conn->ssl, (const char *) buf, + (int64_t) len); } // Keep reading the input (either opened file descriptor fd, or socket sock, diff --git a/mongoose.c b/mongoose.c index 3fcc50b1..82ca4065 100644 --- a/mongoose.c +++ b/mongoose.c @@ -2957,8 +2957,8 @@ int mg_read(struct mg_connection *conn, void *buf, int len) { } int mg_write(struct mg_connection *conn, const void *buf, int len) { - return push(NULL, conn->client.sock, conn->ssl, (const char *) buf, - (int64_t) len); + return (int) push(NULL, conn->client.sock, conn->ssl, (const char *) buf, + (int64_t) len); } // Keep reading the input (either opened file descriptor fd, or socket sock,