Node.js: suppress compilation warning.

This commit is contained in:
Max Romanov
2020-01-28 17:06:57 +03:00
parent 4e0a2002fe
commit 1451090d85

View File

@@ -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) {