diff --git a/Source/Modules/php.cxx b/Source/Modules/php.cxx index efeb4dcc4..620966a58 100644 --- a/Source/Modules/php.cxx +++ b/Source/Modules/php.cxx @@ -1268,7 +1268,7 @@ public: break; char *p; errno = 0; - int n = strtol(Char(value), &p, 0); + long n = strtol(Char(value), &p, 0); Clear(value); if (errno || *p) { Append(value, "?"); @@ -1286,7 +1286,7 @@ public: case T_LONG: { char *p; errno = 0; - unsigned int n = strtol(Char(value), &p, 0); + long n = strtol(Char(value), &p, 0); (void) n; if (errno || *p) { Clear(value); diff --git a/Source/Modules/python.cxx b/Source/Modules/python.cxx index ed19e0b46..00eec707a 100644 --- a/Source/Modules/python.cxx +++ b/Source/Modules/python.cxx @@ -1825,7 +1825,8 @@ public: const char *const s = Char(v); char *end; - (void)strtod(s, &end); + double value = strtod(s, &end); + (void) value; if (errno != ERANGE && end != s) { // An added complication: at least some versions of strtod() recognize // hexadecimal floating point numbers which don't exist in Python, so @@ -1868,7 +1869,8 @@ public: char *end; // Check if this is a number in any base. - (void)strtol(s, &end, 0); + long value = strtol(s, &end, 0); + (void) value; if (end != s) { if (errno == ERANGE) { // There was an overflow, we could try representing the value as Python