diff options
author | yann.collet.73@gmail.com <yann.collet.73@gmail.com@650e7d94-2a16-8b24-b05c-7c0b3f6821cd> | 2011-09-27 20:47:20 (GMT) |
---|---|---|
committer | yann.collet.73@gmail.com <yann.collet.73@gmail.com@650e7d94-2a16-8b24-b05c-7c0b3f6821cd> | 2011-09-27 20:47:20 (GMT) |
commit | ab75a32104554284e900cbcb27b9007565b5d364 (patch) | |
tree | bad1b88272e034f759df57d29acb707e412b2c21 | |
parent | ea53527d10d57a468727b3f797175a2a671338c8 (diff) | |
download | lz4-ab75a32104554284e900cbcb27b9007565b5d364.zip lz4-ab75a32104554284e900cbcb27b9007565b5d364.tar.gz lz4-ab75a32104554284e900cbcb27b9007565b5d364.tar.bz2 |
LZ4Demo : corrected a bug in 64 bits mode
git-svn-id: https://lz4.googlecode.com/svn/trunk@34 650e7d94-2a16-8b24-b05c-7c0b3f6821cd
-rw-r--r-- | lz4demo.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -169,7 +169,7 @@ int compress_file(char* input_filename, char* output_filename) // Compress Block
outSize = LZ4_compress(in_buff, out_buff+4, inSize);
- * (unsigned long*) out_buff = outSize;
+ * (unsigned int*) out_buff = outSize;
compressedfilesize += outSize+4;
// Write Block
@@ -202,7 +202,7 @@ int decode_file(char* input_filename, char* output_filename) char* out_buff;
size_t uselessRet;
int sinkint;
- unsigned long nextSize;
+ unsigned int nextSize;
FILE* finput;
FILE* foutput;
clock_t start, end;
|