diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-02-23 14:30:22 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-02-23 14:30:22 -0300 |
commit | d55bb795faaa3a632aeb92fd29fc12b796ae7968 (patch) | |
tree | e81b84b41de1264dd078cec37541716ba0ffcf27 /lvm.c | |
parent | d84cc9d2dbf1f44e7126fe3ed9a82eed9757a63a (diff) | |
download | lua-d55bb795faaa3a632aeb92fd29fc12b796ae7968.tar.gz lua-d55bb795faaa3a632aeb92fd29fc12b796ae7968.tar.bz2 lua-d55bb795faaa3a632aeb92fd29fc12b796ae7968.zip |
details
Diffstat (limited to 'lvm.c')
-rw-r--r-- | lvm.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lvm.c,v 2.24 2005/02/18 12:40:02 roberto Exp roberto $ | 2 | ** $Id: lvm.c,v 2.25 2005/02/18 12:50:08 roberto Exp roberto $ |
3 | ** Lua virtual machine | 3 | ** Lua virtual machine |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -113,7 +113,7 @@ StkId luaV_gettable (lua_State *L, const TValue *t, TValue *key, StkId val, | |||
113 | const TValue *tm; | 113 | const TValue *tm; |
114 | if (ttistable(t)) { /* `t' is a table? */ | 114 | if (ttistable(t)) { /* `t' is a table? */ |
115 | Table *h = hvalue(t); | 115 | Table *h = hvalue(t); |
116 | const TValue *res = luaH_get(h, key); /* do a primitive set */ | 116 | const TValue *res = luaH_get(h, key); /* do a primitive get */ |
117 | if (!ttisnil(res) || /* result is no nil? */ | 117 | if (!ttisnil(res) || /* result is no nil? */ |
118 | (tm = fasttm(L, h->metatable, TM_INDEX)) == NULL) { /* or no TM? */ | 118 | (tm = fasttm(L, h->metatable, TM_INDEX)) == NULL) { /* or no TM? */ |
119 | setobj2s(L, val, res); | 119 | setobj2s(L, val, res); |