From 849ebae524c85c102aad9b085c6725bd20de6a32 Mon Sep 17 00:00:00 2001 From: Yann Collet Date: Sat, 14 Nov 2020 10:52:19 -0800 Subject: fixed force --sparse mode --- programs/lz4io.c | 2 +- tmp | Bin 0 -> 65536 bytes tmpsparse | Bin 0 -> 65536 bytes 3 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 tmp create mode 100644 tmpsparse 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 Binary files /dev/null and b/tmp differ diff --git a/tmpsparse b/tmpsparse new file mode 100644 index 0000000..c97c12f Binary files /dev/null and b/tmpsparse differ -- cgit v0.12