summaryrefslogtreecommitdiff
path: root/lundump.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2005-05-31 11:25:18 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2005-05-31 11:25:18 -0300
commit90de38bf1f85714526c30e42b670ca997ec45827 (patch)
treec9dbf61d741ddd2ededcba4c1a4da99211c28f7a /lundump.c
parente8a7ecb982effdfc1148098b288c6ac7130f756e (diff)
downloadlua-github-90de38bf1f85714526c30e42b670ca997ec45827.tar.gz
warnings in VS .Net
Diffstat (limited to 'lundump.c')
-rw-r--r--lundump.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lundump.c b/lundump.c
index 7b44c425..fd3877b5 100644
--- a/lundump.c
+++ b/lundump.c
@@ -1,5 +1,5 @@
/*
-** $Id: lundump.c,v 2.3 2004/10/04 19:01:12 roberto Exp roberto $
+** $Id: lundump.c,v 2.4 2005/05/05 20:47:02 roberto Exp roberto $
** load pre-compiled Lua chunks
** See Copyright Notice in lua.h
*/
@@ -40,9 +40,9 @@ static int ezgetc (LoadState* S)
return c;
}
-static void ezread (LoadState* S, void* b, int n)
+static void ezread (LoadState* S, void* b, size_t n)
{
- int r=luaZ_read(S->Z,b,n);
+ size_t r=luaZ_read(S->Z,b,n);
if (r!=0) unexpectedEOZ(S);
}
@@ -51,7 +51,7 @@ static void LoadBlock (LoadState* S, void* b, size_t size)
if (S->swap)
{
char* p=(char*) b+size-1;
- int n=size;
+ size_t n=size;
while (n--) *p--=(char)ezgetc(S);
}
else
@@ -66,7 +66,7 @@ static void LoadVector (LoadState* S, void* b, int m, size_t size)
while (m--)
{
char* p=q+size-1;
- int n=size;
+ size_t n=size;
while (n--) *p--=(char)ezgetc(S);
q+=size;
}