diff options
author | Yann Collet <yann.collet.73@gmail.com> | 2015-03-15 13:19:47 (GMT) |
---|---|---|
committer | Yann Collet <yann.collet.73@gmail.com> | 2015-03-15 13:19:47 (GMT) |
commit | bbcfe2144d1021c8662ba632dfd91403060becd4 (patch) | |
tree | 99d5ed5efee45b2860c1b83263358dd908a0368b /programs/lz4io.c | |
parent | 8a87769af809d8e3c8e43805d47e12569bc4a9d0 (diff) | |
download | lz4-bbcfe2144d1021c8662ba632dfd91403060becd4.zip lz4-bbcfe2144d1021c8662ba632dfd91403060becd4.tar.gz lz4-bbcfe2144d1021c8662ba632dfd91403060becd4.tar.bz2 |
Added : clang test
Diffstat (limited to 'programs/lz4io.c')
-rw-r--r-- | programs/lz4io.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/programs/lz4io.c b/programs/lz4io.c index 50eb035..34fbe10 100644 --- a/programs/lz4io.c +++ b/programs/lz4io.c @@ -612,7 +612,7 @@ static unsigned long long decodeLZ4S(FILE* finput, FILE* foutput) static const size_t zeroBlockSize = 32 KB; while (oBuffPos < oBuffEnd) { - const size_t* sPtr = (const size_t*)oBuffPos; + const size_t* sPtr = (const size_t*)(void*)oBuffPos; size_t seg0Size = zeroBlockSize; size_t nbSizeT; size_t checked; @@ -723,10 +723,7 @@ int LZ4IO_decompressFilename(const char* input_filename, const char* output_file get_fileHandle(input_filename, output_filename, &finput, &foutput); /* sparse file */ - if (g_sparseFileSupport && foutput) - { - SET_SPARSE_FILE_MODE(foutput); - } + if (g_sparseFileSupport && foutput) { SET_SPARSE_FILE_MODE(foutput); } /* Loop over multiple streams */ do |