aboutsummaryrefslogtreecommitdiff
path: root/lfunc.c
diff options
context:
space:
mode:
Diffstat (limited to 'lfunc.c')
-rw-r--r--lfunc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lfunc.c b/lfunc.c
index d1eaa2f9..72d9c863 100644
--- a/lfunc.c
+++ b/lfunc.c
@@ -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 = nelems; 32 c->c.nupvalues = cast(short, 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 = nelems; 43 c->l.nupvalues = cast(short, nelems);
44 return c; 44 return c;
45} 45}
46 46