summaryrefslogtreecommitdiffstats
path: root/lib/lz4frame.h
diff options
context:
space:
mode:
authorYann Collet <yann.collet.73@gmail.com>2015-04-20 11:12:02 (GMT)
committerYann Collet <yann.collet.73@gmail.com>2015-04-20 11:12:02 (GMT)
commita01e10dbdc58ae3bcef3348c6b196fc733b942b7 (patch)
tree626f9090abc89861c3a1db212410a5aa4e91b0a4 /lib/lz4frame.h
parentcbcdd88ccb97632015cf3732b46f8800e62e337b (diff)
downloadlz4-a01e10dbdc58ae3bcef3348c6b196fc733b942b7.zip
lz4-a01e10dbdc58ae3bcef3348c6b196fc733b942b7.tar.gz
lz4-a01e10dbdc58ae3bcef3348c6b196fc733b942b7.tar.bz2
Changed LZ4F compressionLevel from unsigned to signed, in anticipation for LZ4_compress_fast() integration.
Diffstat (limited to 'lib/lz4frame.h')
-rw-r--r--lib/lz4frame.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/lz4frame.h b/lib/lz4frame.h
index e871046..85ebce3 100644
--- a/lib/lz4frame.h
+++ b/lib/lz4frame.h
@@ -119,9 +119,9 @@ typedef struct {
typedef struct {
LZ4F_frameInfo_t frameInfo;
- unsigned compressionLevel; /* 0 == default (fast mode); values above 16 count as 16 */
- unsigned autoFlush; /* 1 == always flush (reduce need for tmp buffer) */
- unsigned reserved[4]; /* must be zero for forward compatibility */
+ int compressionLevel; /* 0 == default (fast mode); values above 16 count as 16; values below 0 count as 0 */
+ unsigned autoFlush; /* 1 == always flush (reduce need for tmp buffer) */
+ unsigned reserved[4]; /* must be zero for forward compatibility */
} LZ4F_preferences_t;