aboutsummaryrefslogtreecommitdiff
path: root/ltable.c
diff options
context:
space:
mode:
Diffstat (limited to 'ltable.c')
-rw-r--r--ltable.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ltable.c b/ltable.c
index 0e0fe772..4aef89c0 100644
--- a/ltable.c
+++ b/ltable.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ltable.c,v 1.56 2000/09/29 12:42:13 roberto Exp roberto $ 2** $Id: ltable.c,v 1.57 2000/10/05 12:14:08 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*/
@@ -139,7 +139,7 @@ Node *luaH_next (lua_State *L, const Hash *t, const TObject *key) {
139*/ 139*/
140void luaH_remove (Hash *t, TObject *key) { 140void luaH_remove (Hash *t, TObject *key) {
141 if (ttype(key) == LUA_TNUMBER || 141 if (ttype(key) == LUA_TNUMBER ||
142 (ttype(key) == LUA_TSTRING && tsvalue(key)->u.s.len <= 30)) 142 (ttype(key) == LUA_TSTRING && tsvalue(key)->len <= 30))
143 return; /* do not remove numbers nor small strings */ 143 return; /* do not remove numbers nor small strings */
144 else { 144 else {
145 /* try to find a number `n' with the same hash as `key' */ 145 /* try to find a number `n' with the same hash as `key' */