Skip to content

Commit 04e33d1

Browse files
committed
bugfix: use ngx_abs() instead of abs() to fix one clang warning (-Wabsolute-value).
1 parent 49855a0 commit 04e33d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ngx_postgres_output.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ ngx_postgres_output_chain(ngx_http_request_t *r, ngx_chain_t *cl)
549549
pglcf = ngx_http_get_module_loc_conf(r, ngx_postgres_module);
550550
pgctx = ngx_http_get_module_ctx(r, ngx_postgres_module);
551551

552-
r->headers_out.status = pgctx->status ? abs(pgctx->status)
552+
r->headers_out.status = pgctx->status ? ngx_abs(pgctx->status)
553553
: NGX_HTTP_OK;
554554

555555
if (pglcf->output_handler == &ngx_postgres_output_rds) {

0 commit comments

Comments
 (0)