aboutsummaryrefslogtreecommitdiff
path: root/ltable.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2010-04-14 12:13:48 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2010-04-14 12:13:48 -0300
commit7dfa4cd655118faf164427356609fec31906dac2 (patch)
treed39fac9afba1dc0ab01dd5d174824120650c9eab /ltable.c
parentfc6203ee4308173283f9ad9de6694d47f0908c4d (diff)
downloadlua-7dfa4cd655118faf164427356609fec31906dac2.tar.gz
lua-7dfa4cd655118faf164427356609fec31906dac2.tar.bz2
lua-7dfa4cd655118faf164427356609fec31906dac2.zip
first implementation of light C functions
Diffstat (limited to 'ltable.c')
-rw-r--r--ltable.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ltable.c b/ltable.c
index c7a7606b..7eb1f4a9 100644
--- a/ltable.c
+++ b/ltable.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ltable.c,v 2.47 2009/12/17 15:46:44 roberto Exp roberto $ 2** $Id: ltable.c,v 2.48 2010/04/05 16:26:37 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*/
@@ -109,6 +109,8 @@ static Node *mainposition (const Table *t, const TValue *key) {
109 return hashboolean(t, bvalue(key)); 109 return hashboolean(t, bvalue(key));
110 case LUA_TLIGHTUSERDATA: 110 case LUA_TLIGHTUSERDATA:
111 return hashpointer(t, pvalue(key)); 111 return hashpointer(t, pvalue(key));
112 case LUA_TCFP:
113 return hashpointer(t, fvalue(key));
112 default: 114 default:
113 return hashpointer(t, gcvalue(key)); 115 return hashpointer(t, gcvalue(key));
114 } 116 }