From ddd03c38a418c9f2ed204bf4fa68fd1d5feac11f Mon Sep 17 00:00:00 2001 From: sfan5 Date: Wed, 30 May 2018 16:30:44 +0200 Subject: Update embedded Lua to 5.1.5 (#7387) --- lib/lua/src/liolib.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'lib/lua/src/liolib.c') diff --git a/lib/lua/src/liolib.c b/lib/lua/src/liolib.c index e79ed1cb2..649f9a595 100644 --- a/lib/lua/src/liolib.c +++ b/lib/lua/src/liolib.c @@ -1,5 +1,5 @@ /* -** $Id: liolib.c,v 2.73.1.3 2008/01/18 17:47:43 roberto Exp $ +** $Id: liolib.c,v 2.73.1.4 2010/05/14 15:33:51 roberto Exp $ ** Standard I/O (and system) library ** See Copyright Notice in lua.h */ @@ -276,7 +276,10 @@ static int read_number (lua_State *L, FILE *f) { lua_pushnumber(L, d); return 1; } - else return 0; /* read fails */ + else { + lua_pushnil(L); /* "result" to be removed */ + return 0; /* read fails */ + } } -- cgit v1.2.3