some details to avoid warnings

This commit is contained in:
Roberto Ierusalimschy
2014-04-01 11:39:55 -03:00
parent 0d745ed04c
commit 607be77ec8
6 changed files with 15 additions and 15 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: lundump.c,v 2.34 2014/03/11 18:56:27 roberto Exp roberto $
** $Id: lundump.c,v 2.35 2014/03/27 15:58:05 roberto Exp roberto $
** load precompiled Lua chunks
** See Copyright Notice in lua.h
*/
@@ -203,7 +203,7 @@ static void LoadFunction (LoadState *S, Proto *f) {
static void checkliteral (LoadState *S, const char *s, const char *msg) {
char buff[sizeof(LUA_SIGNATURE) + sizeof(LUAC_DATA)]; /* larger than both */
int len = strlen(s);
size_t len = strlen(s);
LoadVector(S, buff, len);
if (memcmp(s, buff, len) != 0)
error(S, msg);