From a39d19905e63971b9545accd69a6ce7ac9e529e1 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Mon, 1 Apr 2013 20:37:42 +0200 Subject: [PATCH] BUILD: fix usual isdigit() warning on solaris src/standard.c: In function `str2sa_range': src/standard.c:734: warning: subscript has type `char' This one was recently introduced by commit c120c8d3. --- src/standard.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/standard.c b/src/standard.c index 7a6ca1129e..37b3c436e3 100644 --- a/src/standard.c +++ b/src/standard.c @@ -731,7 +731,7 @@ struct sockaddr_storage *str2sa_range(const char *str, int *low, int *high, char goto out; } - if (isdigit(*port1)) { /* single port or range */ + if (isdigit((int)(unsigned char)*port1)) { /* single port or range */ port2 = strchr(port1, '-'); if (port2) *port2++ = '\0'; -- 2.47.3