summaryrefslogtreecommitdiff
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-github-f42cc90d2d51b1121aa2ed44530013f1df09fec6.tar.gz
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) {
c->c.next = G(L)->rootcl;
G(L)->rootcl = c;
c->c.marked = 0;
- c->c.nupvalues = nelems;
+ c->c.nupvalues = cast(short, nelems);
return c;
}
@@ -40,7 +40,7 @@ Closure *luaF_newLclosure (lua_State *L, int nelems) {
c->c.next = G(L)->rootcl;
G(L)->rootcl = c;
c->l.marked = 0;
- c->l.nupvalues = nelems;
+ c->l.nupvalues = cast(short, nelems);
return c;
}