summaryrefslogtreecommitdiff
path: root/lib/xstrtol.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2018-09-11 12:29:01 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2018-09-11 12:29:33 -0700
commit2f799e514562f109d374af187ae67f005fdd421d (patch)
tree078c3141d1bc300833add34d50de4ecf55daa559 /lib/xstrtol.c
parentb021c53fd4dc009a144db2312d195dd925f0e6fd (diff)
downloadgnulib-2f799e514562f109d374af187ae67f005fdd421d.tar.gz
xstrtol: fix missing-TYPE_SIGNED typo
* lib/xstrtol.c (TYPE_SIGNED): New macro, duplicating intprops.h.
Diffstat (limited to 'lib/xstrtol.c')
-rw-r--r--lib/xstrtol.c2
1 files changed, 2 insertions, 0 deletions
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)
{