aboutsummaryrefslogtreecommitdiff
path: root/lundump.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-04-01 11:39:55 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-04-01 11:39:55 -0300
commit607be77ec8d2b6062077772a55831a5aca16fb2d (patch)
tree160fdbdaab4cf577e94e2f1f78a4d717a26bfcd1 /lundump.c
parent0d745ed04c93e907e9f2bd8c21ce1ca27bba9b6a (diff)
downloadlua-607be77ec8d2b6062077772a55831a5aca16fb2d.tar.gz
lua-607be77ec8d2b6062077772a55831a5aca16fb2d.tar.bz2
lua-607be77ec8d2b6062077772a55831a5aca16fb2d.zip
some details to avoid warnings
Diffstat (limited to 'lundump.c')
-rw-r--r--lundump.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lundump.c b/lundump.c
index ddf55239..1a5c3ab3 100644
--- a/lundump.c
+++ b/lundump.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lundump.c,v 2.34 2014/03/11 18:56:27 roberto Exp roberto $ 2** $Id: lundump.c,v 2.35 2014/03/27 15:58:05 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*/
@@ -203,7 +203,7 @@ static void LoadFunction (LoadState *S, Proto *f) {
203 203
204static void checkliteral (LoadState *S, const char *s, const char *msg) { 204static void checkliteral (LoadState *S, const char *s, const char *msg) {
205 char buff[sizeof(LUA_SIGNATURE) + sizeof(LUAC_DATA)]; /* larger than both */ 205 char buff[sizeof(LUA_SIGNATURE) + sizeof(LUAC_DATA)]; /* larger than both */
206 int len = strlen(s); 206 size_t len = strlen(s);
207 LoadVector(S, buff, len); 207 LoadVector(S, buff, len);
208 if (memcmp(s, buff, len) != 0) 208 if (memcmp(s, buff, len) != 0)
209 error(S, msg); 209 error(S, msg);