diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2019-10-23 13:33:37 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2019-10-23 13:33:57 -0700 |
commit | 56ca994d471611b44829fa89b58747b288fa66fc (patch) | |
tree | b836ac7c2566a305e71860c39d921f93e8d6d5af /modules/nstrftime | |
parent | f5756b919addb9e8ce03f4e61a10e4fcff14874a (diff) | |
download | gnulib-56ca994d471611b44829fa89b58747b288fa66fc.tar.gz |
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.
Diffstat (limited to 'modules/nstrftime')
-rw-r--r-- | modules/nstrftime | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/nstrftime b/modules/nstrftime index b559b5e205..a1ce1b33f6 100644 --- a/modules/nstrftime +++ b/modules/nstrftime @@ -9,6 +9,7 @@ m4/nstrftime.m4 Depends-on: extensions +intprops stdbool time_rz |