diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-09-26 12:02:26 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-09-26 12:02:26 -0300 |
| commit | a580480b07cdf7201306b246deeb2fe84f2c25a9 (patch) | |
| tree | 30e9d4798228156eea5be2589834f1ff2db4355e /ltm.c | |
| parent | 0dd6d1080e7f58eb17cb8a2ad3fc5801ed7c0532 (diff) | |
| download | lua-a580480b07cdf7201306b246deeb2fe84f2c25a9.tar.gz lua-a580480b07cdf7201306b246deeb2fe84f2c25a9.tar.bz2 lua-a580480b07cdf7201306b246deeb2fe84f2c25a9.zip | |
new implementation for globals: Global value is stored in TaggedString
Diffstat (limited to 'ltm.c')
| -rw-r--r-- | ltm.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: $ | 2 | ** $Id: ltm.c,v 1.1 1997/09/16 19:25:59 roberto Exp roberto $ |
| 3 | ** Tag methods | 3 | ** Tag methods |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -176,7 +176,7 @@ int luaT_efectivetag (TObject *o) | |||
| 176 | { | 176 | { |
| 177 | lua_Type t = ttype(o); | 177 | lua_Type t = ttype(o); |
| 178 | if (t == LUA_T_USERDATA) { | 178 | if (t == LUA_T_USERDATA) { |
| 179 | int tag = o->value.ts->tag; | 179 | int tag = o->value.ts->u.d.tag; |
| 180 | return (tag >= 0) ? LUA_T_USERDATA : tag; | 180 | return (tag >= 0) ? LUA_T_USERDATA : tag; |
| 181 | } | 181 | } |
| 182 | else if (t == LUA_T_ARRAY) | 182 | else if (t == LUA_T_ARRAY) |
