summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Wilgus <wilgus.william@gmail.com>2021-08-10 14:52:43 -0400
committerWilliam Wilgus <wilgus.william@gmail.com>2021-08-10 15:00:42 -0400
commit614b189f7a13b8099b2198f6ca9ae5917e5c79f1 (patch)
treec61c509ad3b66514c1cb1d982bac927d0de85b62
parentee6b737b651e45b1926e7d343d977480014fdc07 (diff)
downloadrockbox-614b189f7a13b8099b2198f6ca9ae5917e5c79f1.tar.gz
rockbox-614b189f7a13b8099b2198f6ca9ae5917e5c79f1.zip
lua rockaux.c filetol fix invalid conditional
Change-Id: Id31d3d8b571540394373a61ed213380c95a0eee2
-rw-r--r--apps/plugins/lua/rockaux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugins/lua/rockaux.c b/apps/plugins/lua/rockaux.c
index 929dea798b..c4af2b3e96 100644
--- a/apps/plugins/lua/rockaux.c
+++ b/apps/plugins/lua/rockaux.c
@@ -257,7 +257,7 @@ int filetol(int fd, long *num)
257 { 257 {
258 case '-': 258 case '-':
259 { 259 {
260 if (retn) /* 0 preceeds, this negative sign must be in error */ 260 if (retn > 0) /* 0 preceeds, this negative sign must be in error */
261 goto get_digits; 261 goto get_digits;
262 neg = true; 262 neg = true;
263 continue; 263 continue;