From a59fd1dff82d7ac8c57d890ca30a26c83fc54f52 Mon Sep 17 00:00:00 2001 From: Christos Tsantilas Date: Thu, 29 Aug 2013 13:22:43 +0300 Subject: [PATCH] Fix configuration file parsing bugs, related to quoted strings Try to fix 'comparison between signed and unsigned integer expression' compiler warning. --- src/ConfigParser.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ConfigParser.cc b/src/ConfigParser.cc index c3b49079a4..e68a977a1c 100644 --- a/src/ConfigParser.cc +++ b/src/ConfigParser.cc @@ -188,7 +188,7 @@ ConfigParser::UnQuote(const char *token, const char **next) const char *s = token + 1; char *d = UnQuoted; /* scan until the end of the quoted string, handling escape sequences*/ - while (*s && *s != quoteChar && !errorStr && (d - UnQuoted) < sizeof(UnQuoted)) { + while (*s && *s != quoteChar && !errorStr && (size_t)(d - UnQuoted) < sizeof(UnQuoted)) { if (*s == '\\') { s++; switch (*s) { -- 2.47.2