summaryrefslogtreecommitdiff
path: root/programs
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 /programs
parent5fa6417b2e3ecb9d6434c632b39547b58e5ea12f (diff)
downloadlz4-849ebae524c85c102aad9b085c6725bd20de6a32.tar.gz
lz4-849ebae524c85c102aad9b085c6725bd20de6a32.tar.bz2
lz4-849ebae524c85c102aad9b085c6725bd20de6a32.zip
fixed force --sparse mode
Diffstat (limited to 'programs')
-rw-r--r--programs/lz4io.c2
1 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;
}