From 10b4799ce57100545cd27bc7c7b2fd83c6c30ab8 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 31 Aug 2000 10:30:10 -0300 Subject: details --- liolib.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'liolib.c') diff --git a/liolib.c b/liolib.c index 0a310de0..33a15a81 100644 --- a/liolib.c +++ b/liolib.c @@ -1,5 +1,5 @@ /* -** $Id: liolib.c,v 1.73 2000/08/29 14:33:31 roberto Exp roberto $ +** $Id: liolib.c,v 1.74 2000/08/29 20:43:28 roberto Exp roberto $ ** Standard I/O (and system) library ** See Copyright Notice in lua.h */ @@ -159,7 +159,7 @@ static int file_collect (lua_State *L) { IOCtrl *ctrl = (IOCtrl *)lua_touserdata(L, -1); lua_settop(L, -1); /* remove upvalue */ if (ctrl == (IOCtrl *)lua_touserdata(L, 1)) { - /* collectig `ctrl' itself */ + /* collecting `ctrl' itself */ lua_unref(L, ctrl->ref[INFILE]); lua_unref(L, ctrl->ref[OUTFILE]); free(ctrl); @@ -372,7 +372,8 @@ static int io_read (lua_State *L) { firstarg = lastarg = 1; /* correct indices */ lua_pushstring(L, "*l"); /* push default argument */ } - luaL_checkstack(L, lastarg-firstarg+1, "too many results"); + else + luaL_checkstack(L, lastarg-firstarg+1, "too many arguments"); for (n = firstarg; n<=lastarg; n++) { size_t l; int success; -- cgit v1.2.3-55-g6feb