In file included from vector.c:39:0:
../../common/include/checked-overflow.h: In function 'check_mul_overflow':
../../common/include/checked-overflow.h:191:45: error: suggest parentheses around
'&&' within '||' [-Werror=parentheses]
in_range = b == 0 || a <= UINTMAX_MAX / b && *r <= max;
^
---
common/include/checked-overflow.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/common/include/checked-overflow.h b/common/include/checked-overflow.h
index 7f520036..d72f95a2 100644
--- a/common/include/checked-overflow.h
+++ b/common/include/checked-overflow.h
@@ -188,7 +188,7 @@ check_mul_overflow (uintmax_t a, uintmax_t b, uintmax_t max, uintmax_t
*r)
bool in_range;
*r = a * b;
- in_range = b == 0 || a <= UINTMAX_MAX / b && *r <= max;
+ in_range = b == 0 || (a <= UINTMAX_MAX / b && *r <= max);
return !in_range;
}
--
2.32.0