diff -u ./whoopsie-0.2.69/lib/bson/bson.c ./whoopsie-0.2.69-fixed/lib/bson/bson.c --- ./whoopsie-0.2.69/lib/bson/bson.c 2020-04-07 16:48:42.309516071 +0900 +++ ./whoopsie-0.2.69-fixed/lib/bson/bson.c 2020-04-16 17:23:16.296190900 +0900 @@ -605,7 +605,7 @@ b->cur += 8; } -int bson_ensure_space( bson *b, const uint32_t bytesNeeded ) { +int bson_ensure_space( bson *b, const size_t bytesNeeded ) { uint32_t pos = b->cur - b->data; char *orig = b->data; uint32_t new_size; @@ -667,7 +667,7 @@ return BSON_ERROR; } - if ( bson_ensure_space( b, 1 + len + dataSize ) == BSON_ERROR ) { + if ( bson_ensure_space( b, (size_t)1 + len + dataSize ) == BSON_ERROR ) { return BSON_ERROR; } diff -u ./whoopsie-0.2.69/lib/bson/bson.h ./whoopsie-0.2.69-fixed/lib/bson/bson.h --- ./whoopsie-0.2.69/lib/bson/bson.h 2020-04-07 16:48:42.309516071 +0900 +++ ./whoopsie-0.2.69-fixed/lib/bson/bson.h 2020-04-16 17:21:40.200933633 +0900 @@ -557,7 +557,7 @@ * @return BSON_OK or BSON_ERROR with the bson error object set. * Exits if allocation fails. */ -int bson_ensure_space( bson *b, const uint32_t bytesNeeded ); +int bson_ensure_space( bson *b, const size_t bytesNeeded ); /** * Finalize a bson object. Only in ./whoopsie-0.2.69-fixed/lib/bson/: tags