From 901da539e51e252bdd6dcfb428b8b473db5e7abc Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 10 Mar 2014 16:50:19 -0300 Subject: [PATCH] no need to avoid negative ints in 'LoadInt' --- lundump.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lundump.c b/lundump.c index ae2d19f9..3f274817 100644 --- a/lundump.c +++ b/lundump.c @@ -1,5 +1,5 @@ /* -** $Id: lundump.c,v 2.30 2014/03/01 15:18:44 roberto Exp roberto $ +** $Id: lundump.c,v 2.31 2014/03/10 17:56:32 roberto Exp roberto $ ** load precompiled Lua chunks ** See Copyright Notice in lua.h */ @@ -59,8 +59,6 @@ static lu_byte LoadByte (LoadState *S) { static int LoadInt (LoadState *S) { int x; LoadVar(S, x); - if (x < 0) - error(S, "corrupted"); return x; }