diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-12-18 10:13:42 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-12-18 10:13:42 -0200 |
commit | 77e786d4361b27355e452402a2c340f019561843 (patch) | |
tree | 1ab681e341e7ab44c840c316e6baeae911384243 | |
parent | 6d79752e654aade3a0dcbed007fb05d73583f7df (diff) | |
download | lua-77e786d4361b27355e452402a2c340f019561843.tar.gz lua-77e786d4361b27355e452402a2c340f019561843.tar.bz2 lua-77e786d4361b27355e452402a2c340f019561843.zip |
stupid bug in T.stacklevel (not in use by the tests)
-rw-r--r-- | ltests.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ltests.c,v 2.199 2014/11/29 17:38:33 roberto Exp roberto $ | 2 | ** $Id: ltests.c,v 2.200 2014/12/10 11:30:51 roberto Exp roberto $ |
3 | ** Internal Module for Debugging of the Lua Implementation | 3 | ** Internal Module for Debugging of the Lua Implementation |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -676,7 +676,7 @@ static int stacklevel (lua_State *L) { | |||
676 | lua_pushinteger(L, (L->top - L->stack)); | 676 | lua_pushinteger(L, (L->top - L->stack)); |
677 | lua_pushinteger(L, (L->stack_last - L->stack)); | 677 | lua_pushinteger(L, (L->stack_last - L->stack)); |
678 | lua_pushinteger(L, (unsigned long)&a); | 678 | lua_pushinteger(L, (unsigned long)&a); |
679 | return 5; | 679 | return 3; |
680 | } | 680 | } |
681 | 681 | ||
682 | 682 | ||