changeset 39835:755b9c8fec0a

xstrtol: actually copy the intprops.h line
author Paul Eggert <eggert@cs.ucla.edu>
date Tue, 11 Sep 2018 12:42:31 -0700
parents d5a1b82291f0
children 7e5ce9b777a1
files lib/xstrtol.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lib/xstrtol.c	Tue Sep 11 12:29:01 2018 -0700
+++ b/lib/xstrtol.c	Tue Sep 11 12:42:31 2018 -0700
@@ -42,7 +42,7 @@
 
 #include "assure.h"
 
-#define TYPE_SIGNED(t) ((t) -1 < 0)
+#define TYPE_SIGNED(t) (! ((t) 0 < (t) -1))
 
 static strtol_error
 bkm_scale (__strtol_t *x, int scale_factor)