diff options
author | Yann Collet <cyan@fb.com> | 2020-11-14 10:52:19 -0800 |
---|---|---|
committer | Yann Collet <cyan@fb.com> | 2020-11-14 10:52:19 -0800 |
commit | 849ebae524c85c102aad9b085c6725bd20de6a32 (patch) | |
tree | b1c0d8b279170f29334670df843a21f6882bdbf0 | |
parent | 5fa6417b2e3ecb9d6434c632b39547b58e5ea12f (diff) | |
download | lz4-849ebae524c85c102aad9b085c6725bd20de6a32.tar.gz lz4-849ebae524c85c102aad9b085c6725bd20de6a32.tar.bz2 lz4-849ebae524c85c102aad9b085c6725bd20de6a32.zip |
fixed force --sparse mode
-rw-r--r-- | programs/lz4io.c | 2 | ||||
-rw-r--r-- | tmp | bin | 0 -> 65536 bytes | |||
-rw-r--r-- | tmpsparse | bin | 0 -> 65536 bytes |
3 files changed, 1 insertions, 1 deletions
diff --git a/programs/lz4io.c b/programs/lz4io.c index 975f590..36be639 100644 --- a/programs/lz4io.c +++ b/programs/lz4io.c @@ -272,7 +272,7 @@ int LZ4IO_setNotificationLevel(int level) /* Default setting : 0 (disabled) */ int LZ4IO_setSparseFile(LZ4IO_prefs_t* const prefs, int enable) { - prefs->sparseFileSupport = (enable!=0); + prefs->sparseFileSupport = 2*(enable!=0); return prefs->sparseFileSupport; } diff --git a/tmpsparse b/tmpsparse Binary files differnew file mode 100644 index 0000000..c97c12f --- /dev/null +++ b/tmpsparse |