Skip to content

Commit e355f8f

Browse files
committed
CDRIVER-2116 Fix type warning on clang
1 parent 53ac72e commit e355f8f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/mongoc/mongoc-compression.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,10 @@ mongoc_uncompress (int32_t compressor_id,
145145
#ifdef MONGOC_ENABLE_COMPRESSION_ZLIB
146146
int ok;
147147

148-
ok = uncompress (
149-
uncompressed, uncompressed_size, compressed, compressed_len);
148+
ok = uncompress (uncompressed,
149+
(unsigned long *) uncompressed_size,
150+
compressed,
151+
compressed_len);
150152

151153
return ok == Z_OK;
152154
#else
@@ -189,7 +191,7 @@ mongoc_compress (int32_t compressor_id,
189191
case MONGOC_COMPRESSOR_ZLIB_ID:
190192
#ifdef MONGOC_ENABLE_COMPRESSION_ZLIB
191193
return compress2 ((unsigned char *) compressed,
192-
compressed_len,
194+
(unsigned long *) compressed_len,
193195
(unsigned char *) uncompressed,
194196
uncompressed_len,
195197
compression_level) == Z_OK;

0 commit comments

Comments
 (0)