summaryrefslogtreecommitdiff
path: root/lib/intprops.h
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2020-08-23 13:14:14 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2020-08-23 13:15:35 -0700
commit01405116164d46c58497fb3cf0fb8aae3955cf86 (patch)
tree67cb704b1447c9c8b661f96b6072a22165ab05b9 /lib/intprops.h
parent5d4cdc813c6751a833047ece3dbcf38d976270a6 (diff)
downloadgnulib-01405116164d46c58497fb3cf0fb8aae3955cf86.tar.gz
intprops: be consistent about +X vs X+0
* lib/intprops.h (_GL_SIGNED_INT_MAXIMUM): Simplify.
Diffstat (limited to 'lib/intprops.h')
-rw-r--r--lib/intprops.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/intprops.h b/lib/intprops.h
index 1bd93d11f9..df66a3877a 100644
--- a/lib/intprops.h
+++ b/lib/intprops.h
@@ -70,7 +70,7 @@
? _GL_SIGNED_INT_MAXIMUM (e) \
: _GL_INT_NEGATE_CONVERT (e, 1))
#define _GL_SIGNED_INT_MAXIMUM(e) \
- (((_GL_INT_CONVERT (e, 1) << (TYPE_WIDTH ((e) + 0) - 2)) - 1) * 2 + 1)
+ (((_GL_INT_CONVERT (e, 1) << (TYPE_WIDTH (+ (e)) - 2)) - 1) * 2 + 1)
/* Work around OpenVMS incompatibility with C99. */
#if !defined LLONG_MAX && defined __INT64_MAX