diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-03-10 16:50:19 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-03-10 16:50:19 -0300 |
commit | 901da539e51e252bdd6dcfb428b8b473db5e7abc (patch) | |
tree | 7cd80b75f6e9908dc7697b4e3a2e8915fa6d1a04 /lundump.c | |
parent | 197e249433027e72e5d4ef1a13c4edc6c24bca6c (diff) | |
download | lua-901da539e51e252bdd6dcfb428b8b473db5e7abc.tar.gz lua-901da539e51e252bdd6dcfb428b8b473db5e7abc.tar.bz2 lua-901da539e51e252bdd6dcfb428b8b473db5e7abc.zip |
no need to avoid negative ints in 'LoadInt'
Diffstat (limited to 'lundump.c')
-rw-r--r-- | lundump.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lundump.c,v 2.30 2014/03/01 15:18:44 roberto Exp roberto $ | 2 | ** $Id: lundump.c,v 2.31 2014/03/10 17:56:32 roberto Exp roberto $ |
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 | */ |
@@ -59,8 +59,6 @@ static lu_byte LoadByte (LoadState *S) { | |||
59 | static int LoadInt (LoadState *S) { | 59 | static int LoadInt (LoadState *S) { |
60 | int x; | 60 | int x; |
61 | LoadVar(S, x); | 61 | LoadVar(S, x); |
62 | if (x < 0) | ||
63 | error(S, "corrupted"); | ||
64 | return x; | 62 | return x; |
65 | } | 63 | } |
66 | 64 | ||