diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2012-08-16 14:34:28 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2012-08-16 14:34:28 -0300 |
commit | a3e1c40d6d6fb81db9d8b58aee69466f715aab5c (patch) | |
tree | ea11a028d8d92772ad97879c7bc5bbe50318bbea /ltests.c | |
parent | c1a2a646c81000b03a243cbdeba9c4bd6dd7b474 (diff) | |
download | lua-a3e1c40d6d6fb81db9d8b58aee69466f715aab5c.tar.gz lua-a3e1c40d6d6fb81db9d8b58aee69466f715aab5c.tar.bz2 lua-a3e1c40d6d6fb81db9d8b58aee69466f715aab5c.zip |
remove of unecessary luaD_checkstack. (In some cases, C should
ensure stack space; in others, Lua can use the extra slots for
temporary values.)
Diffstat (limited to 'ltests.c')
-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.131 2012/07/02 15:38:36 roberto Exp roberto $ | 2 | ** $Id: ltests.c,v 2.132 2012/07/04 15:52:38 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 | */ |
@@ -753,7 +753,7 @@ static int string_query (lua_State *L) { | |||
753 | int n = 0; | 753 | int n = 0; |
754 | for (ts = tb->hash[s]; ts; ts = gch(ts)->next) { | 754 | for (ts = tb->hash[s]; ts; ts = gch(ts)->next) { |
755 | setsvalue2s(L, L->top, rawgco2ts(ts)); | 755 | setsvalue2s(L, L->top, rawgco2ts(ts)); |
756 | incr_top(L); | 756 | api_incr_top(L); |
757 | n++; | 757 | n++; |
758 | } | 758 | } |
759 | return n; | 759 | return n; |