summaryrefslogtreecommitdiffhomepage
path: root/src/nodejs
diff options
context:
space:
mode:
authorMax Romanov <max.romanov@nginx.com>2020-03-03 18:28:16 +0300
committerMax Romanov <max.romanov@nginx.com>2020-03-03 18:28:16 +0300
commit004ab48a9ee88c3e9a7225c0c83910329ac01265 (patch)
treed6f90426837d6791ba8447ca1149d7c6dc7f0e03 /src/nodejs
parentf68947bc60c930d460e1bd71bb5f486579009578 (diff)
downloadunit-004ab48a9ee88c3e9a7225c0c83910329ac01265.tar.gz
unit-004ab48a9ee88c3e9a7225c0c83910329ac01265.tar.bz2
Node.js: fixing x86 warning about the signed/unsigned comparison.
Diffstat (limited to '')
-rw-r--r--src/nodejs/unit-http/unit.cpp3
1 files changed, 1 insertions, 2 deletions
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;