]> Savannah Git Hosting - gnulib.git/commit
intprops.h: use __typeof__ with GCC 7
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 29 Aug 2016 17:08:32 +0000 (10:08 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 29 Aug 2016 17:09:50 +0000 (10:09 -0700)
commitd22721e2efd88f26588c9710000eb1eeb3ec40de
tree5f2f9b2cb9449087b46e0bf43854df37729242af
parent175b4e22f99e00996b72f822f5ae54dca8243d19
intprops.h: use __typeof__ with GCC 7

* lib/intprops.h (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW)
(_GL_MULTIPLY_OVERFLOW): Use __typeof__ as in the GCC manual.
This avoids computing the expression's value (which might overflow!).
ChangeLog
lib/intprops.h