]> Savannah Git Hosting - gnulib.git/commit
xstrtol: simplify integer overflow checking
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 17 Jan 2022 06:45:47 +0000 (22:45 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 17 Jan 2022 06:47:07 +0000 (22:47 -0800)
commit8268fd1afacf593225218cca98b6f07488d8f67e
tree61d98cb96ca5b5e76c95f55d19d1617fc402388a
parent67e02aaea40a04eed6ed7abcfdf12d89e2793f77
xstrtol: simplify integer overflow checking

* lib/xstrtol.c: Include intprops.h.
(TYPE_SIGNED): Remove, as intprops.h defines that for us now.
(bkm_scale): Use INT_MULTIPLY_WRAPV instead of checking for
overflow by hand.
ChangeLog
lib/xstrtol.c