diff options
author | Yann Collet <cyan@fb.com> | 2017-03-16 01:59:26 (GMT) |
---|---|---|
committer | Yann Collet <cyan@fb.com> | 2017-03-16 01:59:26 (GMT) |
commit | 9144520dc986db9fffcdc9e2afecdb9db226a756 (patch) | |
tree | cc0aead927de86c8238a1e28ec64869aaebd4c59 /programs/lz4io.c | |
parent | a33bf89c62b1573a604144adaa797d94d97cb990 (diff) | |
download | lz4-9144520dc986db9fffcdc9e2afecdb9db226a756.zip lz4-9144520dc986db9fffcdc9e2afecdb9db226a756.tar.gz lz4-9144520dc986db9fffcdc9e2afecdb9db226a756.tar.bz2 |
fixed Visual compilation error
static const must be a "constant", like a macro
even if it can be determined at compile time ...
Diffstat (limited to 'programs/lz4io.c')
-rw-r--r-- | programs/lz4io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/programs/lz4io.c b/programs/lz4io.c index 5bf5474..d512782 100644 --- a/programs/lz4io.c +++ b/programs/lz4io.c @@ -612,7 +612,7 @@ static unsigned LZ4IO_fwriteSparse(FILE* file, const void* buffer, size_t buffer const size_t* ptrT = bufferT; size_t bufferSizeT = bufferSize / sizeT; const size_t* const bufferTEnd = bufferT + bufferSizeT; - static const size_t segmentSizeT = (32 KB) / sizeT; + const size_t segmentSizeT = (32 KB) / sizeT; if (!g_sparseFileSupport) { /* normal write */ size_t const sizeCheck = fwrite(buffer, 1, bufferSize, file); |