From ab75a32104554284e900cbcb27b9007565b5d364 Mon Sep 17 00:00:00 2001 From: "yann.collet.73@gmail.com" Date: Tue, 27 Sep 2011 20:47:20 +0000 Subject: [PATCH] LZ4Demo : corrected a bug in 64 bits mode git-svn-id: https://lz4.googlecode.com/svn/trunk@34 650e7d94-2a16-8b24-b05c-7c0b3f6821cd --- lz4demo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lz4demo.c b/lz4demo.c index ed0782d..b876dc5 100644 --- a/lz4demo.c +++ b/lz4demo.c @@ -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;