aboutsummaryrefslogtreecommitdiff
path: root/lfunc.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-12-21 15:31:35 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-12-21 15:31:35 -0200
commitf42cc90d2d51b1121aa2ed44530013f1df09fec6 (patch)
treeaa229e5af86f2dbcbf7122c01354020b85be64f8 /lfunc.c
parent9d2e454d6f42f86faf645a4a24f66023846ea9ab (diff)
downloadlua-f42cc90d2d51b1121aa2ed44530013f1df09fec6.tar.gz
lua-f42cc90d2d51b1121aa2ed44530013f1df09fec6.tar.bz2
lua-f42cc90d2d51b1121aa2ed44530013f1df09fec6.zip
some warnings
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