diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2011-12-07 16:03:47 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2011-12-07 16:03:47 -0200 |
commit | f0d143f30f493b3e8557ca234f50b15f2d3301a9 (patch) | |
tree | 01c7138456f8095fa3f4491e6ef72602a39e9d6c /lundump.c | |
parent | c82087b8ddaf9b88221e06e368e6ef1317ece52f (diff) | |
download | lua-f0d143f30f493b3e8557ca234f50b15f2d3301a9.tar.gz lua-f0d143f30f493b3e8557ca234f50b15f2d3301a9.tar.bz2 lua-f0d143f30f493b3e8557ca234f50b15f2d3301a9.zip |
avoid a few warnings (casts)
Diffstat (limited to 'lundump.c')
-rw-r--r-- | lundump.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lundump.c,v 1.70 2011/06/21 12:29:00 lhf Exp $ | 2 | ** $Id: lundump.c,v 1.71 2011/12/07 10:39:12 lhf Exp lhf $ |
3 | ** load precompiled Lua chunks | 3 | ** load precompiled Lua chunks |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -136,8 +136,8 @@ static void LoadUpvalues(LoadState* S, Proto* f) | |||
136 | for (i=0; i<n; i++) f->upvalues[i].name=NULL; | 136 | for (i=0; i<n; i++) f->upvalues[i].name=NULL; |
137 | for (i=0; i<n; i++) | 137 | for (i=0; i<n; i++) |
138 | { | 138 | { |
139 | f->upvalues[i].instack=LoadChar(S); | 139 | f->upvalues[i].instack=LoadByte(S); |
140 | f->upvalues[i].idx=LoadChar(S); | 140 | f->upvalues[i].idx=LoadByte(S); |
141 | } | 141 | } |
142 | } | 142 | } |
143 | 143 | ||