diff options
Diffstat (limited to 'lfunc.c')
-rw-r--r-- | lfunc.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lfunc.c,v 1.68 2003/10/02 19:21:09 roberto Exp roberto $ | 2 | ** $Id: lfunc.c,v 1.69 2003/10/20 17:42:41 roberto Exp roberto $ |
3 | ** Auxiliary functions to manipulate prototypes and closures | 3 | ** Auxiliary functions to manipulate prototypes and closures |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -64,7 +64,7 @@ UpVal *luaF_findupval (lua_State *L, StkId level) { | |||
64 | } | 64 | } |
65 | v = luaM_new(L, UpVal); /* not found: create a new one */ | 65 | v = luaM_new(L, UpVal); /* not found: create a new one */ |
66 | v->tt = LUA_TUPVAL; | 66 | v->tt = LUA_TUPVAL; |
67 | v->marked = 1; /* open upvalues should not be collected */ | 67 | v->marked = bitmask(BLACKBIT); /* open upvalues should not be collected */ |
68 | v->v = level; /* current value lives in the stack */ | 68 | v->v = level; /* current value lives in the stack */ |
69 | v->next = *pp; /* chain it in the proper position */ | 69 | v->next = *pp; /* chain it in the proper position */ |
70 | *pp = valtogco(v); | 70 | *pp = valtogco(v); |