lua rockaux.c filetol fix invalid conditional

Change-Id: Id31d3d8b571540394373a61ed213380c95a0eee2
This commit is contained in:
William Wilgus 2021-08-10 14:52:43 -04:00
parent ee6b737b65
commit 614b189f7a
1 changed files with 1 additions and 1 deletions

View File

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