+2018-09-07 Paul Eggert <eggert@cs.ucla.edu>
+
+ intprops: minor clarification of code
+ * lib/intprops.h (_GL_BINARY_OP_OVERFLOW):
+ Use _GL_INT_CONVERT rather than reinventing it.
+
2018-09-07 Bruno Haible <bruno@clisp.org>
Fix a comment.
Arguments should be free of side effects. */
#define _GL_BINARY_OP_OVERFLOW(a, b, op_result_overflow) \
op_result_overflow (a, b, \
- _GL_INT_MINIMUM ((1 ? 0 : (b)) + (a)), \
- _GL_INT_MAXIMUM ((1 ? 0 : (b)) + (a)))
+ _GL_INT_MINIMUM (_GL_INT_CONVERT (a, b)), \
+ _GL_INT_MAXIMUM (_GL_INT_CONVERT (a, b)))
/* Store the low-order bits of A + B, A - B, A * B, respectively, into *R.
Return 1 if the result overflows. See above for restrictions. */