Node.js: fixing x86 warning about the signed/unsigned comparison.

This commit is contained in:
Max Romanov 2020-03-03 18:28:16 +03:00
parent f68947bc60
commit 004ab48a9e

View file

@ -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;