diff options
Diffstat (limited to 'ltests.c')
-rw-r--r-- | ltests.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1538,7 +1538,8 @@ static int runC (lua_State *L, lua_State *L1, const char *pc) { | |||
1538 | } | 1538 | } |
1539 | else if EQ("getfield") { | 1539 | else if EQ("getfield") { |
1540 | int t = getindex; | 1540 | int t = getindex; |
1541 | lua_getfield(L1, t, getstring); | 1541 | int tp = lua_getfield(L1, t, getstring); |
1542 | lua_assert(tp == lua_type(L1, -1)); | ||
1542 | } | 1543 | } |
1543 | else if EQ("getglobal") { | 1544 | else if EQ("getglobal") { |
1544 | lua_getglobal(L1, getstring); | 1545 | lua_getglobal(L1, getstring); |
@@ -1548,7 +1549,8 @@ static int runC (lua_State *L, lua_State *L1, const char *pc) { | |||
1548 | lua_pushnil(L1); | 1549 | lua_pushnil(L1); |
1549 | } | 1550 | } |
1550 | else if EQ("gettable") { | 1551 | else if EQ("gettable") { |
1551 | lua_gettable(L1, getindex); | 1552 | int tp = lua_gettable(L1, getindex); |
1553 | lua_assert(tp == lua_type(L1, -1)); | ||
1552 | } | 1554 | } |
1553 | else if EQ("gettop") { | 1555 | else if EQ("gettop") { |
1554 | lua_pushinteger(L1, lua_gettop(L1)); | 1556 | lua_pushinteger(L1, lua_gettop(L1)); |