From 004ab48a9ee88c3e9a7225c0c83910329ac01265 Mon Sep 17 00:00:00 2001 From: Max Romanov Date: Tue, 3 Mar 2020 18:28:16 +0300 Subject: Node.js: fixing x86 warning about the signed/unsigned comparison. --- src/nodejs/unit-http/unit.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/nodejs') diff --git a/src/nodejs/unit-http/unit.cpp b/src/nodejs/unit-http/unit.cpp index 64e076c1..975174d4 100644 --- a/src/nodejs/unit-http/unit.cpp +++ b/src/nodejs/unit-http/unit.cpp @@ -812,8 +812,7 @@ Unit::response_write(napi_env env, napi_callback_info info) /* TODO: will work only for utf8 content-type */ if (req->response_buf != NULL - && (req->response_buf->end - req->response_buf->free) - >= buf_len) + && req->response_buf->end >= req->response_buf->free + buf_len) { buf = req->response_buf; -- cgit