Janitorial work

Comments, code details, identation.
This commit is contained in:
Roberto Ierusalimschy
2021-01-25 10:39:18 -03:00
parent 0e9254dfa0
commit 1f81baffad
4 changed files with 45 additions and 26 deletions

3
lapi.c
View File

@@ -74,7 +74,8 @@ static TValue *index2value (lua_State *L, int idx) {
return &G(L)->nilvalue; /* it has no upvalues */
else {
CClosure *func = clCvalue(s2v(ci->func));
return (idx <= func->nupvalues) ? &func->upvalue[idx-1] : &G(L)->nilvalue;
return (idx <= func->nupvalues) ? &func->upvalue[idx-1]
: &G(L)->nilvalue;
}
}
}