diff options
Diffstat (limited to 'ltable.c')
-rw-r--r-- | ltable.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ltable.c,v 1.8 1997/12/09 13:35:19 roberto Exp roberto $ | 2 | ** $Id: ltable.c,v 1.9 1997/12/15 16:17:20 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 | */ |
@@ -36,8 +36,8 @@ static long int hashindex (TObject *ref) | |||
36 | case LUA_T_STRING: case LUA_T_USERDATA: | 36 | case LUA_T_STRING: case LUA_T_USERDATA: |
37 | h = (IntPoint)tsvalue(ref); | 37 | h = (IntPoint)tsvalue(ref); |
38 | break; | 38 | break; |
39 | case LUA_T_CLOSURE: | 39 | case LUA_T_ARRAY: |
40 | h = (IntPoint)clvalue(ref); | 40 | h = (IntPoint)avalue(ref); |
41 | break; | 41 | break; |
42 | case LUA_T_PROTO: | 42 | case LUA_T_PROTO: |
43 | h = (IntPoint)tfvalue(ref); | 43 | h = (IntPoint)tfvalue(ref); |
@@ -45,8 +45,8 @@ static long int hashindex (TObject *ref) | |||
45 | case LUA_T_CPROTO: | 45 | case LUA_T_CPROTO: |
46 | h = (IntPoint)fvalue(ref); | 46 | h = (IntPoint)fvalue(ref); |
47 | break; | 47 | break; |
48 | case LUA_T_ARRAY: | 48 | case LUA_T_CLOSURE: |
49 | h = (IntPoint)avalue(ref); | 49 | h = (IntPoint)clvalue(ref); |
50 | break; | 50 | break; |
51 | default: | 51 | default: |
52 | lua_error("unexpected type to index table"); | 52 | lua_error("unexpected type to index table"); |