From: Paul Eggert Date: Tue, 11 Sep 2018 19:29:01 +0000 (-0700) Subject: xstrtol: fix missing-TYPE_SIGNED typo X-Git-Tag: v1.0~5429 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=2f799e514562f109d374af187ae67f005fdd421d;p=gnulib.git xstrtol: fix missing-TYPE_SIGNED typo * lib/xstrtol.c (TYPE_SIGNED): New macro, duplicating intprops.h. --- 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) {