From 7dfa4cd655118faf164427356609fec31906dac2 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 14 Apr 2010 12:13:48 -0300 Subject: first implementation of light C functions --- ltable.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ltable.c') diff --git a/ltable.c b/ltable.c index c7a7606b..7eb1f4a9 100644 --- a/ltable.c +++ b/ltable.c @@ -1,5 +1,5 @@ /* -** $Id: ltable.c,v 2.47 2009/12/17 15:46:44 roberto Exp roberto $ +** $Id: ltable.c,v 2.48 2010/04/05 16:26:37 roberto Exp roberto $ ** Lua tables (hash) ** See Copyright Notice in lua.h */ @@ -109,6 +109,8 @@ static Node *mainposition (const Table *t, const TValue *key) { return hashboolean(t, bvalue(key)); case LUA_TLIGHTUSERDATA: return hashpointer(t, pvalue(key)); + case LUA_TCFP: + return hashpointer(t, fvalue(key)); default: return hashpointer(t, gcvalue(key)); } -- cgit v1.2.3-55-g6feb