diff options
author | Max Romanov <max.romanov@nginx.com> | 2020-01-28 17:06:57 +0300 |
---|---|---|
committer | Max Romanov <max.romanov@nginx.com> | 2020-01-28 17:06:57 +0300 |
commit | 1451090d85db4152ba432b45d2e164b4f76bc80c (patch) | |
tree | 1cc908454a74facb9f88114b9a8abf18244daf40 /src/nodejs | |
parent | 4e0a2002fe6d952cfc7e3bda925fff6c2311b90c (diff) | |
download | unit-1451090d85db4152ba432b45d2e164b4f76bc80c.tar.gz unit-1451090d85db4152ba432b45d2e164b4f76bc80c.tar.bz2 |
Node.js: suppress compilation warning.
Diffstat (limited to 'src/nodejs')
-rw-r--r-- | src/nodejs/unit-http/unit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nodejs/unit-http/unit.cpp b/src/nodejs/unit-http/unit.cpp index 1fa73689..64e076c1 100644 --- a/src/nodejs/unit-http/unit.cpp +++ b/src/nodejs/unit-http/unit.cpp @@ -844,7 +844,7 @@ Unit::response_write(napi_env env, napi_callback_info info) res_len = nxt_unit_response_write_nb(req, ptr, have_buf_len, 0); - ret = res_len < 0 ? -res_len : NXT_UNIT_OK; + ret = res_len < 0 ? -res_len : (int) NXT_UNIT_OK; } if (ret != NXT_UNIT_OK) { |