diff options
| -rw-r--r-- | ltable.c | 5 |
1 files changed, 3 insertions, 2 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: ltable.c,v 2.37 2007/04/18 19:24:35 roberto Exp roberto $ | 2 | ** $Id: ltable.c,v 2.38 2008/01/30 18:05:23 roberto Exp roberto $ |
| 3 | ** Lua tables (hash) | 3 | ** Lua tables (hash) |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -376,7 +376,8 @@ void luaH_free (lua_State *L, Table *t) { | |||
| 376 | 376 | ||
| 377 | 377 | ||
| 378 | static Node *getfreepos (Table *t) { | 378 | static Node *getfreepos (Table *t) { |
| 379 | while (t->lastfree-- > t->node) { | 379 | while (t->lastfree > t->node) { |
| 380 | t->lastfree--; | ||
| 380 | if (ttisnil(gkey(t->lastfree))) | 381 | if (ttisnil(gkey(t->lastfree))) |
| 381 | return t->lastfree; | 382 | return t->lastfree; |
| 382 | } | 383 | } |
