mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-10 16:31:44 +00:00
Fixed build warning of signed/unsigned conditional expression
This commit is contained in:
1 parent
07d982129a
commit
347a249d10
1 file changed
+1
-1
+1
-1
@@ -3556,7 +3556,7 @@ static void handle_put(struct connection *conn, const char *path) {
|
|||||||
|
|
||||||
static void forward_put_data(struct connection *conn) {
|
static void forward_put_data(struct connection *conn) {
|
||||||
struct iobuf *io = &conn->ns_conn->recv_iobuf;
|
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!
|
int n = write(conn->endpoint.fd, io->buf, k); // Write them!
|
||||||
if (n > 0) {
|
if (n > 0) {
|
||||||
iobuf_remove(io, n);
|
iobuf_remove(io, n);
|
||||||
|
|||||||
Reference in new issue
Block a user