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

View file

@ -257,7 +257,7 @@ int filetol(int fd, long *num)
{ {
case '-': 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; goto get_digits;
neg = true; neg = true;
continue; continue;