revert last, must have been high

SVN revision: 56139
This commit is contained in:
Mike Blumenkrantz 2011-01-15 19:47:02 +00:00
parent 767b0c52ad
commit 9e6ff792cd
1 changed files with 5 additions and 1 deletions

View File

@ -802,7 +802,7 @@ is_param(int n)
}
int
is_num(int n __UNUSED__)
is_num(int n)
{
char *str;
char *end;
@ -818,6 +818,10 @@ is_num(int n __UNUSED__)
if (str[0] == 0) return 0;
end = str;
ret = strtol(str, &end, 0);
if ((ret == LONG_MIN) || (ret == LONG_MAX))
{
n = 0; // do nothing. shut gcc warnings up
}
if ((end != str) && (end[0] == 0)) return 1;
return 0;
}