diff options
| author | Paul Eggert | 2015-12-18 15:41:45 -0800 |
|---|---|---|
| committer | Paul Eggert | 2015-12-18 15:42:12 -0800 |
| commit | 73b3beb56dd573a77fd7b103014f2d74674f2e23 (patch) | |
| tree | 27a552222062dbf966f4442ed5e1eec77ba53d4f /lib/intprops.h | |
| parent | 81e523fc4d3dcb0cf59a69f45786d2691f982695 (diff) | |
| download | emacs-73b3beb56dd573a77fd7b103014f2d74674f2e23.tar.gz emacs-73b3beb56dd573a77fd7b103014f2d74674f2e23.zip | |
Merge from gnulib
This mostly commentary fixes.
* doc/misc/texinfo.tex, lib/intprops.h: Copy from gnulib.
* lib/gnulib.mk: Regenerate with new gnulib-tool.
Diffstat (limited to 'lib/intprops.h')
| -rw-r--r-- | lib/intprops.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/intprops.h b/lib/intprops.h index 8fff86d4371..ecafaf70e15 100644 --- a/lib/intprops.h +++ b/lib/intprops.h | |||
| @@ -272,9 +272,10 @@ | |||
| 272 | 272 | ||
| 273 | Example usage, assuming A and B are long int: | 273 | Example usage, assuming A and B are long int: |
| 274 | 274 | ||
| 275 | long int result = INT_MULTIPLY_WRAPV (a, b); | 275 | if (INT_MULTIPLY_OVERFLOW (a, b)) |
| 276 | printf ("result is %ld (%s)\n", result, | 276 | printf ("result would overflow\n"); |
| 277 | INT_MULTIPLY_OVERFLOW (a, b) ? "after overflow" : "no overflow"); | 277 | else |
| 278 | printf ("result is %ld (no overflow)\n", a * b); | ||
| 278 | 279 | ||
| 279 | Example usage with WRAPV flavor: | 280 | Example usage with WRAPV flavor: |
| 280 | 281 | ||