lua rockaux.c filetol fix invalid conditional
Change-Id: Id31d3d8b571540394373a61ed213380c95a0eee2
This commit is contained in:
parent
ee6b737b65
commit
614b189f7a
1 changed files with 1 additions and 1 deletions
|
@ -257,7 +257,7 @@ int filetol(int fd, long *num)
|
|||
{
|
||||
case '-':
|
||||
{
|
||||
if (retn) /* 0 preceeds, this negative sign must be in error */
|
||||
if (retn > 0) /* 0 preceeds, this negative sign must be in error */
|
||||
goto get_digits;
|
||||
neg = true;
|
||||
continue;
|
||||
|
|
Loading…
Reference in a new issue