diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2021-01-25 10:39:18 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2021-01-25 10:39:18 -0300 |
commit | 1f81baffadad9d955b030a1a29b9b06042a66552 (patch) | |
tree | 7a7b06eed86f59b68fb8bc4250726e45c1323202 /lapi.c | |
parent | 0e9254dfa03d95c3aa2888cf78e9a30bc88d41bc (diff) | |
download | lua-1f81baffadad9d955b030a1a29b9b06042a66552.tar.gz lua-1f81baffadad9d955b030a1a29b9b06042a66552.tar.bz2 lua-1f81baffadad9d955b030a1a29b9b06042a66552.zip |
Janitorial work
Comments, code details, identation.
Diffstat (limited to '')
-rw-r--r-- | lapi.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -74,7 +74,8 @@ static TValue *index2value (lua_State *L, int idx) { | |||
74 | return &G(L)->nilvalue; /* it has no upvalues */ | 74 | return &G(L)->nilvalue; /* it has no upvalues */ |
75 | else { | 75 | else { |
76 | CClosure *func = clCvalue(s2v(ci->func)); | 76 | CClosure *func = clCvalue(s2v(ci->func)); |
77 | return (idx <= func->nupvalues) ? &func->upvalue[idx-1] : &G(L)->nilvalue; | 77 | return (idx <= func->nupvalues) ? &func->upvalue[idx-1] |
78 | : &G(L)->nilvalue; | ||
78 | } | 79 | } |
79 | } | 80 | } |
80 | } | 81 | } |