LZ4Demo : corrected a bug in 64 bits mode

git-svn-id: https://lz4.googlecode.com/svn/trunk@34 650e7d94-2a16-8b24-b05c-7c0b3f6821cd
This commit is contained in:
yann.collet.73@gmail.com 2011-09-27 20:47:20 +00:00
parent ea53527d10
commit ab75a32104

View File

@ -169,7 +169,7 @@ int compress_file(char* input_filename, char* output_filename)
// Compress Block // Compress Block
outSize = LZ4_compress(in_buff, out_buff+4, inSize); outSize = LZ4_compress(in_buff, out_buff+4, inSize);
* (unsigned long*) out_buff = outSize; * (unsigned int*) out_buff = outSize;
compressedfilesize += outSize+4; compressedfilesize += outSize+4;
// Write Block // Write Block
@ -202,7 +202,7 @@ int decode_file(char* input_filename, char* output_filename)
char* out_buff; char* out_buff;
size_t uselessRet; size_t uselessRet;
int sinkint; int sinkint;
unsigned long nextSize; unsigned int nextSize;
FILE* finput; FILE* finput;
FILE* foutput; FILE* foutput;
clock_t start, end; clock_t start, end;