diff options
| -rw-r--r-- | undump.c | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -3,7 +3,7 @@ | |||
| 3 | ** load bytecodes from files | 3 | ** load bytecodes from files |
| 4 | */ | 4 | */ |
| 5 | 5 | ||
| 6 | char* rcs_undump="$Id: undump.c,v 1.18 1996/11/14 13:33:15 lhf Exp lhf $"; | 6 | char* rcs_undump="$Id: undump.c,v 1.19 1996/11/14 15:00:32 lhf Exp lhf $"; |
| 7 | 7 | ||
| 8 | #include <stdio.h> | 8 | #include <stdio.h> |
| 9 | #include <string.h> | 9 | #include <string.h> |
| @@ -172,9 +172,9 @@ static int LoadSize(FILE* D) | |||
| 172 | return s; | 172 | return s; |
| 173 | } | 173 | } |
| 174 | 174 | ||
| 175 | static char* LoadBlock(int size, FILE* D) | 175 | static void* LoadBlock(int size, FILE* D) |
| 176 | { | 176 | { |
| 177 | char* b=luaI_malloc(size); | 177 | void* b=luaI_malloc(size); |
| 178 | fread(b,size,1,D); | 178 | fread(b,size,1,D); |
| 179 | return b; | 179 | return b; |
| 180 | } | 180 | } |
