diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2006-01-10 10:50:00 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2006-01-10 10:50:00 -0200 |
| commit | dd1221582bc7c0c2ec508b5bad4086f8801b61a8 (patch) | |
| tree | 36c896b2dc704cc28edc59c92b83f00319e4e9ea /ltests.c | |
| parent | bfdcbbcd76c7187022fe2d35675de0b1c92eeadf (diff) | |
| download | lua-dd1221582bc7c0c2ec508b5bad4086f8801b61a8.tar.gz lua-dd1221582bc7c0c2ec508b5bad4086f8801b61a8.tar.bz2 lua-dd1221582bc7c0c2ec508b5bad4086f8801b61a8.zip | |
details
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.33 2005/10/06 20:47:32 roberto Exp roberto $ | 2 | ** $Id: ltests.c,v 2.34 2005/12/22 16:19:56 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 | */ |
| @@ -564,7 +564,7 @@ static int table_query (lua_State *L) { | |||
| 564 | t = hvalue(obj_at(L, 1)); | 564 | t = hvalue(obj_at(L, 1)); |
| 565 | if (i == -1) { | 565 | if (i == -1) { |
| 566 | lua_pushinteger(L, t->sizearray); | 566 | lua_pushinteger(L, t->sizearray); |
| 567 | lua_pushinteger(L, t->node == &luaH_dummynode ? 0 : sizenode(t)); | 567 | lua_pushinteger(L, t->node == luaH_dummynode ? 0 : sizenode(t)); |
| 568 | lua_pushinteger(L, t->lastfree - t->node); | 568 | lua_pushinteger(L, t->lastfree - t->node); |
| 569 | } | 569 | } |
| 570 | else if (i < t->sizearray) { | 570 | else if (i < t->sizearray) { |
