File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -62,12 +62,11 @@ void luaF_initupvals (lua_State *L, LClosure *cl) {
62
62
** Create a new upvalue at the given level, and link it to the list of
63
63
** open upvalues of 'L' after entry 'prev'.
64
64
**/
65
- static UpVal * newupval (lua_State * L , int tbc , StkId level , UpVal * * prev ) {
65
+ static UpVal * newupval (lua_State * L , StkId level , UpVal * * prev ) {
66
66
GCObject * o = luaC_newobj (L , LUA_VUPVAL , sizeof (UpVal ));
67
67
UpVal * uv = gco2upv (o );
68
68
UpVal * next = * prev ;
69
69
uv -> v .p = s2v (level ); /* current value lives in the stack */
70
- uv -> tbc = tbc ;
71
70
uv -> u .open .next = next ; /* link it to list of open upvalues */
72
71
uv -> u .open .previous = prev ;
73
72
if (next )
@@ -96,7 +95,7 @@ UpVal *luaF_findupval (lua_State *L, StkId level) {
96
95
pp = & p -> u .open .next ;
97
96
}
98
97
/* not found: create a new upvalue after 'pp' */
99
- return newupval (L , 0 , level , pp );
98
+ return newupval (L , level , pp );
100
99
}
101
100
102
101
Original file line number Diff line number Diff line change @@ -628,7 +628,6 @@ typedef struct Proto {
628
628
*/
629
629
typedef struct UpVal {
630
630
CommonHeader ;
631
- lu_byte tbc ; /* true if it represents a to-be-closed variable */
632
631
union {
633
632
TValue * p ; /* points to stack or to its own value */
634
633
ptrdiff_t offset ; /* used while the stack is being reallocated */
You can’t perform that action at this time.
0 commit comments