Fix linux gcc warnings and strtol corrections

This commit is contained in:
William S Fulton 2015-01-11 17:30:25 +00:00
commit 06e361dbf2
2 changed files with 6 additions and 4 deletions

View file

@ -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);