]> Savannah Git Hosting - gnulib.git/commitdiff
xstrtol: fix missing-TYPE_SIGNED typo
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 11 Sep 2018 19:29:01 +0000 (12:29 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 11 Sep 2018 19:29:33 +0000 (12:29 -0700)
* lib/xstrtol.c (TYPE_SIGNED): New macro, duplicating intprops.h.

ChangeLog
lib/xstrtol.c

index baf02fd160e3a6c97e54707f087330582fbb8f53..2243876d4a602a1a1cd66f38db07679b8959c0c8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
index 1332e3fc2540fb2cd26101820ec28bd241f47e46..efc22afc344efb8f86bd51ccec45918e6c3d90bd 100644 (file)
@@ -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)
 {