Mercurial > gnulib
changeset 18386:de2e6354b968
intprops.h: fix missing-backslash problems
* lib/intprops.h (_GL_ADD_OVERFLOW): Add backslash.
(_GL_SUBTRACT_OVERFLOW,_GL_MULTIPLY_OVERFLOW): Likewise.
author | Jim Meyering <meyering@fb.com> |
---|---|
date | Mon, 29 Aug 2016 09:27:50 -0700 |
parents | 6e87a1af50ed |
children | 6821cce38136 |
files | ChangeLog lib/intprops.h |
diffstat | 2 files changed, 9 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Fri Aug 26 06:33:31 2016 -0700 +++ b/ChangeLog Mon Aug 29 09:27:50 2016 -0700 @@ -1,3 +1,9 @@ +2016-08-29 Jim Meyering <meyering@fb.com> + + 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 <eggert@cs.ucla.edu> intprops: fix paren typo on old platforms
--- a/lib/intprops.h Fri Aug 26 06:33:31 2016 -0700 +++ b/lib/intprops.h Mon Aug 29 09:27:50 2016 -0700 @@ -236,11 +236,11 @@ (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) \