diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2018-02-26 11:16:05 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2018-02-26 11:16:05 -0300 |
| commit | ef8263f81fdde2310ebb15c9a3fe5e954d57cab5 (patch) | |
| tree | 8532d24bcfc4c59212616bdae1b25f087f1eb179 /lcode.c | |
| parent | 2952bc5fc9cdc05ed061539cb7be26899513f004 (diff) | |
| download | lua-ef8263f81fdde2310ebb15c9a3fe5e954d57cab5.tar.gz lua-ef8263f81fdde2310ebb15c9a3fe5e954d57cab5.tar.bz2 lua-ef8263f81fdde2310ebb15c9a3fe5e954d57cab5.zip | |
better names for macros for tags and types.
rttype -> rawtt; ttyperaw -> withvariant; ttype -> ttypetag;
tnov -> ttype
Diffstat (limited to 'lcode.c')
| -rw-r--r-- | lcode.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lcode.c,v 2.156 2018/02/21 12:54:26 roberto Exp roberto $ | 2 | ** $Id: lcode.c,v 2.157 2018/02/21 15:49:32 roberto Exp roberto $ |
| 3 | ** Code generator for Lua | 3 | ** Code generator for Lua |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -504,7 +504,7 @@ static int addk (FuncState *fs, TValue *key, TValue *v) { | |||
| 504 | if (ttisinteger(idx)) { /* is there an index there? */ | 504 | if (ttisinteger(idx)) { /* is there an index there? */ |
| 505 | k = cast_int(ivalue(idx)); | 505 | k = cast_int(ivalue(idx)); |
| 506 | /* correct value? (warning: must distinguish floats from integers!) */ | 506 | /* correct value? (warning: must distinguish floats from integers!) */ |
| 507 | if (k < fs->nk && ttype(&f->k[k]) == ttype(v) && | 507 | if (k < fs->nk && ttypetag(&f->k[k]) == ttypetag(v) && |
| 508 | luaV_rawequalobj(&f->k[k], v)) | 508 | luaV_rawequalobj(&f->k[k], v)) |
| 509 | return k; /* reuse index */ | 509 | return k; /* reuse index */ |
| 510 | } | 510 | } |
