aboutsummaryrefslogtreecommitdiffstats
path: root/missing_d/intprops.h
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2018-09-21 12:45:49 +0300
committerArnold D. Robbins <arnold@skeeve.com>2018-09-21 12:45:49 +0300
commitdfa06e8677737ca794f9505aac71d67679979c6d (patch)
tree1540c1d662443c2b62d2ee7a02294d1ab6ff59db /missing_d/intprops.h
parent362a100732b1017b54d3d6c6f14ea6ba59e657c2 (diff)
parenta7c32b55995136013af2bff2a0fe4d6c69678cb7 (diff)
downloadegawk-dfa06e8677737ca794f9505aac71d67679979c6d.tar.gz
egawk-dfa06e8677737ca794f9505aac71d67679979c6d.tar.bz2
egawk-dfa06e8677737ca794f9505aac71d67679979c6d.zip
Merge branch 'master' into feature/fix-comments
Diffstat (limited to 'missing_d/intprops.h')
-rw-r--r--missing_d/intprops.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/missing_d/intprops.h b/missing_d/intprops.h
index a4be30b8..9702aec4 100644
--- a/missing_d/intprops.h
+++ b/missing_d/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. */