summaryrefslogtreecommitdiffstats
path: root/lib/lz4frame.h
diff options
context:
space:
mode:
authorYann Collet <cyan@fb.com>2019-04-19 17:23:50 (GMT)
committerYann Collet <cyan@fb.com>2019-04-19 17:23:50 (GMT)
commitaf35920c81e388f7d5f8be5560d791a9f265a4f5 (patch)
treed31808b2dc0a53e764f08312d17b6b5e6be68c7d /lib/lz4frame.h
parent10b9e912276e45355435a45d58e24cf92d192b75 (diff)
downloadlz4-af35920c81e388f7d5f8be5560d791a9f265a4f5.zip
lz4-af35920c81e388f7d5f8be5560d791a9f265a4f5.tar.gz
lz4-af35920c81e388f7d5f8be5560d791a9f265a4f5.tar.bz2
lz4frame: initializers compatibility with C++
fix #679, reported by @degski
Diffstat (limited to 'lib/lz4frame.h')
-rw-r--r--lib/lz4frame.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/lz4frame.h b/lib/lz4frame.h
index ca20dc9..742c252 100644
--- a/lib/lz4frame.h
+++ b/lib/lz4frame.h
@@ -176,7 +176,7 @@ typedef struct {
LZ4F_blockChecksum_t blockChecksumFlag; /* 1: each block followed by a checksum of block's compressed data; 0: disabled (default) */
} LZ4F_frameInfo_t;
-#define LZ4F_INIT_FRAMEINFO { 0, 0, 0, 0, 0, 0, 0 } /* v1.8.3+ */
+#define LZ4F_INIT_FRAMEINFO { LZ4F_default, LZ4F_blockLinked, LZ4F_noContentChecksum, LZ4F_frame, 0ULL, 0U, LZ4F_noBlockChecksum } /* v1.8.3+ */
/*! LZ4F_preferences_t :
* makes it possible to supply advanced compression instructions to streaming interface.
@@ -191,7 +191,7 @@ typedef struct {
unsigned reserved[3]; /* must be zero for forward compatibility */
} LZ4F_preferences_t;
-#define LZ4F_INIT_PREFERENCES { LZ4F_INIT_FRAMEINFO, 0, 0, 0, { 0, 0, 0 } } /* v1.8.3+ */
+#define LZ4F_INIT_PREFERENCES { LZ4F_INIT_FRAMEINFO, 0, 0u, 0u, { 0u, 0u, 0u } } /* v1.8.3+ */
/*-*********************************