diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2011-11-24 11:25:41 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2011-11-24 11:25:41 -0200 |
commit | 6e899850b9178f934829c36aecb77cb2b9be6a05 (patch) | |
tree | b5023efe4c75aac4bc1ead80fb53338dc292e43f | |
parent | fded7bef19dae0636f98558d36a9797e611c34ef (diff) | |
download | lua-6e899850b9178f934829c36aecb77cb2b9be6a05.tar.gz lua-6e899850b9178f934829c36aecb77cb2b9be6a05.tar.bz2 lua-6e899850b9178f934829c36aecb77cb2b9be6a05.zip |
details
-rw-r--r-- | ldump.c | 6 | ||||
-rw-r--r-- | lundump.c | 4 |
2 files changed, 5 insertions, 5 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ldump.c,v 1.18 2011/05/06 13:35:17 lhf Exp $ | 2 | ** $Id: ldump.c,v 1.19 2011/11/23 17:48:18 lhf Exp $ |
3 | ** save precompiled Lua chunks | 3 | ** save precompiled Lua chunks |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -111,8 +111,8 @@ static void DumpUpvalues(const Proto* f, DumpState* D) | |||
111 | DumpInt(n,D); | 111 | DumpInt(n,D); |
112 | for (i=0; i<n; i++) | 112 | for (i=0; i<n; i++) |
113 | { | 113 | { |
114 | DumpChar(f->upvalues[i].instack, D); | 114 | DumpChar(f->upvalues[i].instack,D); |
115 | DumpChar(f->upvalues[i].idx, D); | 115 | DumpChar(f->upvalues[i].idx,D); |
116 | } | 116 | } |
117 | } | 117 | } |
118 | 118 | ||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lundump.c,v 1.69 2011/05/06 13:35:17 lhf Exp $ | 2 | ** $Id: lundump.c,v 1.70 2011/06/21 12:29:00 lhf Exp $ |
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 | */ |
@@ -44,7 +44,7 @@ static void error(LoadState* S, const char* why) | |||
44 | 44 | ||
45 | static void LoadBlock(LoadState* S, void* b, size_t size) | 45 | static void LoadBlock(LoadState* S, void* b, size_t size) |
46 | { | 46 | { |
47 | if (luaZ_read(S->Z,b,size)!=0) error(S,"corrupted"); | 47 | if (luaZ_read(S->Z,b,size)!=0) error(S,"truncated"); |
48 | } | 48 | } |
49 | 49 | ||
50 | static int LoadChar(LoadState* S) | 50 | static int LoadChar(LoadState* S) |