aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib_io.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib_io.c b/src/lib_io.c
index e8eb09cb..787fdc6b 100644
--- a/src/lib_io.c
+++ b/src/lib_io.c
@@ -140,6 +140,7 @@ static int io_file_readnum(lua_State *L, FILE *fp)
140 setnumV(L->top++, d); 140 setnumV(L->top++, d);
141 return 1; 141 return 1;
142 } else { 142 } else {
143 setnilV(L->top++);
143 return 0; 144 return 0;
144 } 145 }
145} 146}