From: Paul Eggert Date: Thu, 25 Aug 2016 05:24:48 +0000 (-0700) Subject: intprops: fix paren typo on old platforms X-Git-Tag: v1.0~6674 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=f10125053f26ab537734651f2bf530ae0bdea66b;p=gnulib.git intprops: fix paren typo on old platforms Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300#13 * lib/intprops.h (_GL_INT_OP_WRAPV_LONGISH) [__GNUC__ < 5 && !__has_builtin (__builtin_add_overflow) && (__STDC_VERSION__ < 201112 || _GL__GENERIC_BOGUS) && !defined LLONG_MAX]: Remove stray paren. --- diff --git a/ChangeLog b/ChangeLog index 7cfd2444a8..4a2e641516 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,13 @@ 2016-08-24 Paul Eggert + intprops: fix paren typo on old platforms + Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300#13 + * lib/intprops.h (_GL_INT_OP_WRAPV_LONGISH) + [__GNUC__ < 5 && !__has_builtin (__builtin_add_overflow) + && (__STDC_VERSION__ < 201112 || _GL__GENERIC_BOGUS) + && !defined LLONG_MAX]: + Remove stray paren. + intprops: port to OpenVMS Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300 * doc/posix-headers/limits.texi: Document the problem. diff --git a/lib/intprops.h b/lib/intprops.h index fe6c789825..6030760708 100644 --- a/lib/intprops.h +++ b/lib/intprops.h @@ -418,7 +418,7 @@ verify (TYPE_MAXIMUM (long long int) == LLONG_MAX); # else # define _GL_INT_OP_WRAPV_LONGISH(a, b, r, op, overflow) \ _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned long int, \ - long int, LONG_MIN, LONG_MAX)) + long int, LONG_MIN, LONG_MAX) # endif #endif