diff options
author | Takayuki Matsuoka <t-mat@users.noreply.github.com> | 2021-09-06 16:02:23 (GMT) |
---|---|---|
committer | Takayuki Matsuoka <t-mat@users.noreply.github.com> | 2021-09-06 16:02:23 (GMT) |
commit | 1b0a501a198873fd12969c37b51623cc25e1771f (patch) | |
tree | a083c0173e05360272c39c19318e013400b52c4d | |
parent | d2334731c3883e76813302d90c87eb93d74b40ba (diff) | |
download | lz4-1b0a501a198873fd12969c37b51623cc25e1771f.zip lz4-1b0a501a198873fd12969c37b51623cc25e1771f.tar.gz lz4-1b0a501a198873fd12969c37b51623cc25e1771f.tar.bz2 |
Add cast operator for compatibility with C++
-rw-r--r-- | examples/dictionaryRandomAccess.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/dictionaryRandomAccess.c b/examples/dictionaryRandomAccess.c index f7d1b67..3aa4609 100644 --- a/examples/dictionaryRandomAccess.c +++ b/examples/dictionaryRandomAccess.c @@ -78,7 +78,7 @@ void test_compress(FILE* outFp, FILE* inpFp, void *dict, int dictSize) } /* Forget previously compressed data and load the dictionary */ - LZ4_loadDict(lz4Stream, dict, dictSize); + LZ4_loadDict(lz4Stream, (const char*) dict, dictSize); { char cmpBuf[LZ4_COMPRESSBOUND(BLOCK_BYTES)]; const int cmpBytes = LZ4_compress_fast_continue( @@ -153,7 +153,7 @@ void test_decompress(FILE* outFp, FILE* inpFp, void *dict, int dictSize, int off } /* Load the dictionary */ - LZ4_setStreamDecode(lz4StreamDecode, dict, dictSize); + LZ4_setStreamDecode(lz4StreamDecode, (const char*) dict, dictSize); { const int decBytes = LZ4_decompress_safe_continue( lz4StreamDecode, cmpBuf, decBuf, cmpBytes, BLOCK_BYTES); |