summaryrefslogtreecommitdiff
path: root/lundump.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2011-12-07 16:03:47 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2011-12-07 16:03:47 -0200
commitf0d143f30f493b3e8557ca234f50b15f2d3301a9 (patch)
tree01c7138456f8095fa3f4491e6ef72602a39e9d6c /lundump.c
parentc82087b8ddaf9b88221e06e368e6ef1317ece52f (diff)
downloadlua-github-f0d143f30f493b3e8557ca234f50b15f2d3301a9.tar.gz
avoid a few warnings (casts)
Diffstat (limited to 'lundump.c')
-rw-r--r--lundump.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lundump.c b/lundump.c
index d7b0ab3b..6a7012b1 100644
--- a/lundump.c
+++ b/lundump.c
@@ -1,5 +1,5 @@
/*
-** $Id: lundump.c,v 1.70 2011/06/21 12:29:00 lhf Exp $
+** $Id: lundump.c,v 1.71 2011/12/07 10:39:12 lhf Exp lhf $
** load precompiled Lua chunks
** See Copyright Notice in lua.h
*/
@@ -136,8 +136,8 @@ static void LoadUpvalues(LoadState* S, Proto* f)
for (i=0; i<n; i++) f->upvalues[i].name=NULL;
for (i=0; i<n; i++)
{
- f->upvalues[i].instack=LoadChar(S);
- f->upvalues[i].idx=LoadChar(S);
+ f->upvalues[i].instack=LoadByte(S);
+ f->upvalues[i].idx=LoadByte(S);
}
}