aboutsummaryrefslogtreecommitdiffstats
path: root/support/intprops.h
diff options
context:
space:
mode:
Diffstat (limited to 'support/intprops.h')
-rw-r--r--support/intprops.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/support/intprops.h b/support/intprops.h
index a4be30b8..9702aec4 100644
--- a/support/intprops.h
+++ b/support/intprops.h
@@ -342,8 +342,8 @@
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. */