aboutsummaryrefslogtreecommitdiff
path: root/lundump.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2011-02-23 10:13:10 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2011-02-23 10:13:10 -0300
commit7482e8f914fbf198af02c2970cf0aadd80740f92 (patch)
tree56578e184ca11939edc00272d63bc801e2b67a5a /lundump.c
parent03b769053a4288742fb4739fa47508ec735e2036 (diff)
downloadlua-7482e8f914fbf198af02c2970cf0aadd80740f92.tar.gz
lua-7482e8f914fbf198af02c2970cf0aadd80740f92.tar.bz2
lua-7482e8f914fbf198af02c2970cf0aadd80740f92.zip
no need of lookahead in Zio
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 161ef1d4..170c9ece 100644
--- a/lundump.c
+++ b/lundump.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lundump.c,v 2.14 2010/10/25 14:33:38 roberto Exp roberto $ 2** $Id: lundump.c,v 2.15 2011/02/07 19:15:24 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*/
@@ -180,8 +180,8 @@ static void LoadHeader(LoadState* S)
180 char h[LUAC_HEADERSIZE]; 180 char h[LUAC_HEADERSIZE];
181 char s[LUAC_HEADERSIZE]; 181 char s[LUAC_HEADERSIZE];
182 luaU_header(h); 182 luaU_header(h);
183 LoadBlock(S,s,LUAC_HEADERSIZE); 183 LoadBlock(S,s,LUAC_HEADERSIZE-1); /* 1st char already read */
184 if (memcmp(h,s,LUAC_HEADERSIZE)!=0) error(S,"incompatible"); 184 if (memcmp(h+1,s,LUAC_HEADERSIZE-1)!=0) error(S,"incompatible");
185} 185}
186 186
187/* 187/*