diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-04-05 15:54:31 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-04-05 15:54:31 -0300 |
commit | 237969724f54eeefee057ae382237c8db54af44e (patch) | |
tree | fc4abd54f7cac0749023f1c021e7d86e3ee4f273 /ltable.c | |
parent | f438d00ef31e3aea54023602f529b68834ffb80a (diff) | |
download | lua-237969724f54eeefee057ae382237c8db54af44e.tar.gz lua-237969724f54eeefee057ae382237c8db54af44e.tar.bz2 lua-237969724f54eeefee057ae382237c8db54af44e.zip |
support for `light' userdata + simpler support for `boxed' udata
Diffstat (limited to 'ltable.c')
-rw-r--r-- | ltable.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ltable.c,v 1.101 2002/02/14 21:41:08 roberto Exp roberto $ | 2 | ** $Id: ltable.c,v 1.102 2002/03/18 18:18:35 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 | */ |
@@ -73,7 +73,9 @@ Node *luaH_mainposition (const Table *t, const TObject *key) { | |||
73 | return hashstr(t, tsvalue(key)); | 73 | return hashstr(t, tsvalue(key)); |
74 | case LUA_TBOOLEAN: | 74 | case LUA_TBOOLEAN: |
75 | return hashboolean(t, bvalue(key)); | 75 | return hashboolean(t, bvalue(key)); |
76 | default: /* all other types are hashed as (void *) */ | 76 | case LUA_TUDATAVAL: |
77 | return hashpointer(t, pvalue(key)); | ||
78 | default: /* other types are hashed as (struct *) */ | ||
77 | return hashpointer(t, tsvalue(key)); | 79 | return hashpointer(t, tsvalue(key)); |
78 | } | 80 | } |
79 | } | 81 | } |