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.1 2001/11/29 22:14:34 rieru Exp rieru $ | 2 | ** $Id: lfunc.c,v 1.53 2001/12/21 17:31:35 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 | */ |
@@ -29,7 +29,7 @@ Closure *luaF_newCclosure (lua_State *L, int nelems) { | |||
29 | c->c.next = G(L)->rootcl; | 29 | c->c.next = G(L)->rootcl; |
30 | G(L)->rootcl = c; | 30 | G(L)->rootcl = c; |
31 | c->c.marked = 0; | 31 | c->c.marked = 0; |
32 | c->c.nupvalues = cast(short, nelems); | 32 | c->c.nupvalues = cast(lu_byte, nelems); |
33 | return c; | 33 | return c; |
34 | } | 34 | } |
35 | 35 | ||
@@ -40,7 +40,7 @@ Closure *luaF_newLclosure (lua_State *L, int nelems) { | |||
40 | c->c.next = G(L)->rootcl; | 40 | c->c.next = G(L)->rootcl; |
41 | G(L)->rootcl = c; | 41 | G(L)->rootcl = c; |
42 | c->l.marked = 0; | 42 | c->l.marked = 0; |
43 | c->l.nupvalues = cast(short, nelems); | 43 | c->l.nupvalues = cast(lu_byte, nelems); |
44 | return c; | 44 | return c; |
45 | } | 45 | } |
46 | 46 | ||