diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2020-10-07 11:45:23 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2020-10-12 12:29:09 -0300 |
commit | c23cc86c542449db47bdb21e9550203309bef045 (patch) | |
tree | 1b7876f7ad26feef4a3ab18f29d3b0b03deabfb2 /lfunc.c | |
parent | 171dcd7d745566e69c61845599705707500a104e (diff) | |
download | lua-c23cc86c542449db47bdb21e9550203309bef045.tar.gz lua-c23cc86c542449db47bdb21e9550203309bef045.tar.bz2 lua-c23cc86c542449db47bdb21e9550203309bef045.zip |
Details
- After converting a generic GCObject to a specific type ('gco2*'),
avoid using the original GCObject (to reduce aliasing).
- Small corrections in comments in 'lopcodes.h'
- Added tests about who calls __close metamethods
Diffstat (limited to 'lfunc.c')
-rw-r--r-- | lfunc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -53,7 +53,7 @@ void luaF_initupvals (lua_State *L, LClosure *cl) { | |||
53 | uv->v = &uv->u.value; /* make it closed */ | 53 | uv->v = &uv->u.value; /* make it closed */ |
54 | setnilvalue(uv->v); | 54 | setnilvalue(uv->v); |
55 | cl->upvals[i] = uv; | 55 | cl->upvals[i] = uv; |
56 | luaC_objbarrier(L, cl, o); | 56 | luaC_objbarrier(L, cl, uv); |
57 | } | 57 | } |
58 | } | 58 | } |
59 | 59 | ||