lua

A copy of the Lua development repository
Log | Files | Refs | README

commit 77e786d4361b27355e452402a2c340f019561843
parent 6d79752e654aade3a0dcbed007fb05d73583f7df
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date:   Thu, 18 Dec 2014 10:13:17 -0200

stupid bug in T.stacklevel (not in use by the tests)

Diffstat:
Mltests.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ltests.c b/ltests.c @@ -1,5 +1,5 @@ /* -** $Id: ltests.c,v 2.199 2014/11/29 17:38:33 roberto Exp roberto $ +** $Id: ltests.c,v 2.200 2014/12/10 11:30:51 roberto Exp roberto $ ** Internal Module for Debugging of the Lua Implementation ** See Copyright Notice in lua.h */ @@ -676,7 +676,7 @@ static int stacklevel (lua_State *L) { lua_pushinteger(L, (L->top - L->stack)); lua_pushinteger(L, (L->stack_last - L->stack)); lua_pushinteger(L, (unsigned long)&a); - return 5; + return 3; }