summaryrefslogtreecommitdiff
path: root/modules/nstrftime
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2019-10-23 13:33:37 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2019-10-23 13:33:57 -0700
commit56ca994d471611b44829fa89b58747b288fa66fc (patch)
treeb836ac7c2566a305e71860c39d921f93e8d6d5af /modules/nstrftime
parentf5756b919addb9e8ce03f4e61a10e4fcff14874a (diff)
downloadgnulib-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/nstrftime1
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