From 2f799e514562f109d374af187ae67f005fdd421d Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Tue, 11 Sep 2018 12:29:01 -0700 Subject: [PATCH] xstrtol: fix missing-TYPE_SIGNED typo * lib/xstrtol.c (TYPE_SIGNED): New macro, duplicating intprops.h. --- ChangeLog | 5 +++++ lib/xstrtol.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index baf02fd160..2243876d4a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2018-09-11 Paul Eggert + + xstrtol: fix missing-TYPE_SIGNED typo + * lib/xstrtol.c (TYPE_SIGNED): New macro, duplicating intprops.h. + 2018-09-10 Paul Eggert timespec: fix resolution confusion diff --git a/lib/xstrtol.c b/lib/xstrtol.c index 1332e3fc25..efc22afc34 100644 --- a/lib/xstrtol.c +++ b/lib/xstrtol.c @@ -42,6 +42,8 @@ #include "assure.h" +#define TYPE_SIGNED(t) ((t) -1 < 0) + static strtol_error bkm_scale (__strtol_t *x, int scale_factor) { -- 2.39.5