commit e30327728ca4efc3fb8591cf3ea0b65cafbd907a
parent 36e1390631a4b89f0a8a3111978780de0d53466c
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date: Mon, 3 Apr 2000 10:20:11 -0300
BUG: tostring() without arguments gives seg. fault.
Diffstat:
2 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/bugs b/bugs
@@ -143,3 +143,13 @@ Thu Mar 2 09:41:53 EST 2000
>> lua_settable should check stack space (it could call a T.M.)
(by lhf & celes; since 3.2; it was already fixed by fixed stack)
+** lparser.c
+Mon Apr 3 09:59:06 EST 2000
+>> '%' should be in expfollow
+(by Edgar Toernig; since 3.1; it was already fixed)
+
+** lbuiltin.c
+Mon Apr 3 10:05:05 EST 2000
+>> tostring() without arguments gives seg. fault.
+(by Edgar Toernig; since 3.0)
+
diff --git a/lbuiltin.c b/lbuiltin.c
@@ -1,5 +1,5 @@
/*
-** $Id: lbuiltin.c,v 1.99 2000/03/27 20:10:21 roberto Exp roberto $
+** $Id: lbuiltin.c,v 1.100 2000/03/29 20:19:20 roberto Exp roberto $
** Built-in functions
** See Copyright Notice in lua.h
*/
@@ -371,7 +371,7 @@ void luaB_next (lua_State *L) {
void luaB_tostring (lua_State *L) {
- lua_Object o = lua_getparam(L, 1);
+ lua_Object o = luaL_nonnullarg(L, 1);
char buff[64];
switch (ttype(o)) {
case TAG_NUMBER: