From: Jim Meyering Date: Mon, 29 Aug 2016 16:27:50 +0000 (-0700) Subject: intprops.h: fix missing-backslash problems X-Git-Tag: v1.0~6672 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=b9c364f02cb7a7485cd063fa2cbcbf82042fa8cc;p=gnulib.git intprops.h: fix missing-backslash problems * lib/intprops.h (_GL_ADD_OVERFLOW): Add backslash. (_GL_SUBTRACT_OVERFLOW,_GL_MULTIPLY_OVERFLOW): Likewise. --- diff --git a/ChangeLog b/ChangeLog index 4a2e641516..c5e6ee879b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2016-08-29 Jim Meyering + + intprops.h: fix missing-backslash problems + * lib/intprops.h (_GL_ADD_OVERFLOW): Add backslash. + (_GL_SUBTRACT_OVERFLOW,_GL_MULTIPLY_OVERFLOW): Likewise. + 2016-08-24 Paul Eggert intprops: fix paren typo on old platforms diff --git a/lib/intprops.h b/lib/intprops.h index 6030760708..0c45550a9b 100644 --- a/lib/intprops.h +++ b/lib/intprops.h @@ -236,11 +236,11 @@ verify (TYPE_MAXIMUM (long long int) == LLONG_MAX); (e.g., A and B) have the same type as MIN and MAX. Instead, they assume that the result (e.g., A + B) has that type. */ #if _GL_HAS_BUILTIN_OVERFLOW_WITH_NULL -# define _GL_ADD_OVERFLOW(a, b, min, max) +# define _GL_ADD_OVERFLOW(a, b, min, max) \ __builtin_add_overflow (a, b, (__typeof__ ((a) + (b)) *) 0) -# define _GL_SUBTRACT_OVERFLOW(a, b, min, max) +# define _GL_SUBTRACT_OVERFLOW(a, b, min, max) \ __builtin_sub_overflow (a, b, (__typeof__ ((a) - (b)) *) 0) -# define _GL_MULTIPLY_OVERFLOW(a, b, min, max) +# define _GL_MULTIPLY_OVERFLOW(a, b, min, max) \ __builtin_mul_overflow (a, b, (__typeof__ ((a) * (b)) *) 0) #else # define _GL_ADD_OVERFLOW(a, b, min, max) \