From 56ca994d471611b44829fa89b58747b288fa66fc Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Wed, 23 Oct 2019 13:33:37 -0700 Subject: nstrftime: speed up integer overflow checking MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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. --- modules/nstrftime | 1 + 1 file changed, 1 insertion(+) (limited to 'modules/nstrftime') 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 -- cgit v1.2.1