From b5658d3938dfea0bb38d9fe368e7822988e8c5a4 Mon Sep 17 00:00:00 2001 From: Guenter Obiltschnig Date: Mon, 29 Sep 2014 10:10:09 +0200 Subject: [PATCH] GH# 545: use short for sign --- Foundation/include/Poco/NumericString.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Foundation/include/Poco/NumericString.h b/Foundation/include/Poco/NumericString.h index 0c6721e42..4abd8f9c2 100644 --- a/Foundation/include/Poco/NumericString.h +++ b/Foundation/include/Poco/NumericString.h @@ -87,7 +87,7 @@ bool strToInt(const char* pStr, I& result, short base, char thSep = ',') if (!pStr) return false; while (isspace(*pStr)) ++pStr; if (*pStr == '\0') return false; - char sign = 1; + short sign = 1; if ((base == 10) && (*pStr == '-')) { // Unsigned types can't be negative so abort parsing