From 0e1058cfdd07a3751fce1c79b75241cf770266cf Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 9 Jan 1998 12:44:55 -0200 Subject: small optimizations in switch order --- ltable.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'ltable.c') diff --git a/ltable.c b/ltable.c index f182e4ba..0c91833a 100644 --- a/ltable.c +++ b/ltable.c @@ -1,5 +1,5 @@ /* -** $Id: ltable.c,v 1.8 1997/12/09 13:35:19 roberto Exp roberto $ +** $Id: ltable.c,v 1.9 1997/12/15 16:17:20 roberto Exp roberto $ ** Lua tables (hash) ** See Copyright Notice in lua.h */ @@ -36,8 +36,8 @@ static long int hashindex (TObject *ref) case LUA_T_STRING: case LUA_T_USERDATA: h = (IntPoint)tsvalue(ref); break; - case LUA_T_CLOSURE: - h = (IntPoint)clvalue(ref); + case LUA_T_ARRAY: + h = (IntPoint)avalue(ref); break; case LUA_T_PROTO: h = (IntPoint)tfvalue(ref); @@ -45,8 +45,8 @@ static long int hashindex (TObject *ref) case LUA_T_CPROTO: h = (IntPoint)fvalue(ref); break; - case LUA_T_ARRAY: - h = (IntPoint)avalue(ref); + case LUA_T_CLOSURE: + h = (IntPoint)clvalue(ref); break; default: lua_error("unexpected type to index table"); -- cgit v1.2.3-55-g6feb