From 4839ab23301503dbbe7f5dba71a8a010d246f79d Mon Sep 17 00:00:00 2001 From: Intel A80486DX2-66 Date: Sat, 9 Mar 2024 17:55:41 +0300 Subject: [PATCH] opt_int_div.h: add parentheses around `a` and `b` in last part of `OPT_INT_DIV` --- c-programming/math/opt_int_div.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/c-programming/math/opt_int_div.h b/c-programming/math/opt_int_div.h index 24e594f..2a15fb2 100644 --- a/c-programming/math/opt_int_div.h +++ b/c-programming/math/opt_int_div.h @@ -44,9 +44,9 @@ (roundl(fmodl(log2l(INT_ABS((b))), 1.l) * OPT_INT_DIV_ROUNDING) \ == 0.l) ? ( \ INT_DIV_NEG_RESULT_SIGN(a, b) ? \ - -INT_BIN_DIV(INT_ABS(a), INT_ABS(b)) \ + -INT_BIN_DIV(INT_ABS((a)), INT_ABS((b))) \ : \ - INT_BIN_DIV(INT_ABS(a), INT_ABS(b))) \ + INT_BIN_DIV(INT_ABS((a)), INT_ABS((b)))) \ : \ ((a) / (b)) )) \ ) /* end */