diff options
Diffstat (limited to 'lfunc.c')
-rw-r--r-- | lfunc.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lfunc.c,v 1.65 2002/12/19 11:11:55 roberto Exp roberto $ | 2 | ** $Id: lfunc.c,v 1.66 2003/02/11 10:46:24 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 | */ |
@@ -35,11 +35,11 @@ Closure *luaF_newCclosure (lua_State *L, int nelems) { | |||
35 | } | 35 | } |
36 | 36 | ||
37 | 37 | ||
38 | Closure *luaF_newLclosure (lua_State *L, int nelems, TObject *gt) { | 38 | Closure *luaF_newLclosure (lua_State *L, int nelems, TObject *e) { |
39 | Closure *c = cast(Closure *, luaM_malloc(L, sizeLclosure(nelems))); | 39 | Closure *c = cast(Closure *, luaM_malloc(L, sizeLclosure(nelems))); |
40 | luaC_link(L, valtogco(c), LUA_TFUNCTION); | 40 | luaC_link(L, valtogco(c), LUA_TFUNCTION); |
41 | c->l.isC = 0; | 41 | c->l.isC = 0; |
42 | c->l.g = *gt; | 42 | c->l.g = *e; |
43 | c->l.nupvalues = cast(lu_byte, nelems); | 43 | c->l.nupvalues = cast(lu_byte, nelems); |
44 | return c; | 44 | return c; |
45 | } | 45 | } |