summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/xstrtol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/xstrtol.c b/lib/xstrtol.c
index efc22afc34..e5bfd7e0f3 100644
--- a/lib/xstrtol.c
+++ b/lib/xstrtol.c
@@ -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)