LZ4Demo : corrected a bug in 64 bits mode
authoryann.collet.73@gmail.com <yann.collet.73@gmail.com@650e7d94-2a16-8b24-b05c-7c0b3f6821cd>
Tue, 27 Sep 2011 20:47:20 +0000 (20:47 +0000)
committeryann.collet.73@gmail.com <yann.collet.73@gmail.com@650e7d94-2a16-8b24-b05c-7c0b3f6821cd>
Tue, 27 Sep 2011 20:47:20 +0000 (20:47 +0000)
git-svn-id: https://lz4.googlecode.com/svn/trunk@34 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

lz4demo.c

index ed0782d..b876dc5 100644 (file)
--- a/lz4demo.c
+++ b/lz4demo.c
@@ -169,7 +169,7 @@ int compress_file(char* input_filename, char* output_filename)
 \r
                // Compress Block\r
                outSize = LZ4_compress(in_buff, out_buff+4, inSize);\r
-               * (unsigned long*) out_buff = outSize;\r
+               * (unsigned int*) out_buff = outSize;\r
                compressedfilesize += outSize+4;\r
 \r
                // Write Block\r
@@ -202,7 +202,7 @@ int decode_file(char* input_filename, char* output_filename)
        char* out_buff;\r
        size_t uselessRet;\r
        int sinkint;\r
-       unsigned long nextSize;\r
+       unsigned int nextSize;\r
        FILE* finput;\r
        FILE* foutput;\r
        clock_t start, end;\r