* lib/intprops.h (_GL_SIGNED_INT_MAXIMUM): Simplify.
2020-08-23 Paul Eggert <eggert@cs.ucla.edu>
+ intprops: be consistent about +X vs X+0
+ * lib/intprops.h (_GL_SIGNED_INT_MAXIMUM): Simplify.
+
intprops: fix INT_MULTIPLY_WRAPV bit-field bug
The bug occurs when using INT_MULTIPLY_WRAPV (a, b, c) where B
is a bit-field, on older GCC or non-GCC compilers where we do
? _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