diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-05-31 11:25:18 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-05-31 11:25:18 -0300 |
commit | 90de38bf1f85714526c30e42b670ca997ec45827 (patch) | |
tree | c9dbf61d741ddd2ededcba4c1a4da99211c28f7a /lundump.c | |
parent | e8a7ecb982effdfc1148098b288c6ac7130f756e (diff) | |
download | lua-90de38bf1f85714526c30e42b670ca997ec45827.tar.gz lua-90de38bf1f85714526c30e42b670ca997ec45827.tar.bz2 lua-90de38bf1f85714526c30e42b670ca997ec45827.zip |
warnings in VS .Net
Diffstat (limited to 'lundump.c')
-rw-r--r-- | lundump.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lundump.c,v 2.3 2004/10/04 19:01:12 roberto Exp roberto $ | 2 | ** $Id: lundump.c,v 2.4 2005/05/05 20:47:02 roberto Exp roberto $ |
3 | ** load pre-compiled Lua chunks | 3 | ** load pre-compiled Lua chunks |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -40,9 +40,9 @@ static int ezgetc (LoadState* S) | |||
40 | return c; | 40 | return c; |
41 | } | 41 | } |
42 | 42 | ||
43 | static void ezread (LoadState* S, void* b, int n) | 43 | static void ezread (LoadState* S, void* b, size_t n) |
44 | { | 44 | { |
45 | int r=luaZ_read(S->Z,b,n); | 45 | size_t r=luaZ_read(S->Z,b,n); |
46 | if (r!=0) unexpectedEOZ(S); | 46 | if (r!=0) unexpectedEOZ(S); |
47 | } | 47 | } |
48 | 48 | ||
@@ -51,7 +51,7 @@ static void LoadBlock (LoadState* S, void* b, size_t size) | |||
51 | if (S->swap) | 51 | if (S->swap) |
52 | { | 52 | { |
53 | char* p=(char*) b+size-1; | 53 | char* p=(char*) b+size-1; |
54 | int n=size; | 54 | size_t n=size; |
55 | while (n--) *p--=(char)ezgetc(S); | 55 | while (n--) *p--=(char)ezgetc(S); |
56 | } | 56 | } |
57 | else | 57 | else |
@@ -66,7 +66,7 @@ static void LoadVector (LoadState* S, void* b, int m, size_t size) | |||
66 | while (m--) | 66 | while (m--) |
67 | { | 67 | { |
68 | char* p=q+size-1; | 68 | char* p=q+size-1; |
69 | int n=size; | 69 | size_t n=size; |
70 | while (n--) *p--=(char)ezgetc(S); | 70 | while (n--) *p--=(char)ezgetc(S); |
71 | q+=size; | 71 | q+=size; |
72 | } | 72 | } |