]> Savannah Git Hosting - gnulib.git/commit
nstrftime: speed up integer overflow checking
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 23 Oct 2019 20:33:37 +0000 (13:33 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 23 Oct 2019 20:33:57 +0000 (13:33 -0700)
commit56ca994d471611b44829fa89b58747b288fa66fc
treeb836ac7c2566a305e71860c39d921f93e8d6d5af
parentf5756b919addb9e8ce03f4e61a10e4fcff14874a
nstrftime: speed up integer overflow checking

* lib/nstrftime.c: Include intprops.h.
(INT_STRLEN_BOUND): Remove, as we can use intprops.h’s defn.
(__strftime_internal): Use INT_MULTIPLY_WRAPV and INT_ADD_WRAPV
instead of doing it by hand.
* modules/nstrftime (Depends-on): Add intprops.
ChangeLog
lib/nstrftime.c
modules/nstrftime