changeset 39834:d5a1b82291f0

xstrtol: fix missing-TYPE_SIGNED typo * lib/xstrtol.c (TYPE_SIGNED): New macro, duplicating intprops.h.
author Paul Eggert <eggert@cs.ucla.edu>
date Tue, 11 Sep 2018 12:29:01 -0700
parents 4c9d0c898076
children 755b9c8fec0a
files ChangeLog lib/xstrtol.c
diffstat 2 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Mon Sep 10 18:42:25 2018 -0700
+++ b/ChangeLog	Tue Sep 11 12:29:01 2018 -0700
@@ -1,3 +1,8 @@
+2018-09-11  Paul Eggert  <eggert@cs.ucla.edu>
+
+	xstrtol: fix missing-TYPE_SIGNED typo
+	* lib/xstrtol.c (TYPE_SIGNED): New macro, duplicating intprops.h.
+
 2018-09-10  Paul Eggert  <eggert@cs.ucla.edu>
 
 	timespec: fix resolution confusion
--- a/lib/xstrtol.c	Mon Sep 10 18:42:25 2018 -0700
+++ b/lib/xstrtol.c	Tue Sep 11 12:29:01 2018 -0700
@@ -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)
 {