summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann Collet <cyan@fb.com>2020-11-14 10:52:19 -0800
committerYann Collet <cyan@fb.com>2020-11-14 10:52:19 -0800
commit849ebae524c85c102aad9b085c6725bd20de6a32 (patch)
treeb1c0d8b279170f29334670df843a21f6882bdbf0
parent5fa6417b2e3ecb9d6434c632b39547b58e5ea12f (diff)
downloadlz4-849ebae524c85c102aad9b085c6725bd20de6a32.tar.gz
lz4-849ebae524c85c102aad9b085c6725bd20de6a32.tar.bz2
lz4-849ebae524c85c102aad9b085c6725bd20de6a32.zip
fixed force --sparse mode
-rw-r--r--programs/lz4io.c2
-rw-r--r--tmpbin0 -> 65536 bytes
-rw-r--r--tmpsparsebin0 -> 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/tmp b/tmp
new file mode 100644
index 0000000..c97c12f
--- /dev/null
+++ b/tmp
Binary files differ
diff --git a/tmpsparse b/tmpsparse
new file mode 100644
index 0000000..c97c12f
--- /dev/null
+++ b/tmpsparse
Binary files differ