Fix linux gcc warnings and strtol corrections
This commit is contained in:
parent
679f9395bc
commit
06e361dbf2
2 changed files with 6 additions and 4 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue