Skip to content

Commit 2616554

Browse files
bjoriajdavis
authored andcommitted
CDRIVER-1044 fix -Wint-conversion on macOS
incompatible pointer to integer conversion returning 'unsigned char *' from a function with result type 'bool' (aka 'signed char')
1 parent 23d7062 commit 2616554

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/mongoc/mongoc-crypto-common-crypto.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,10 @@ mongoc_crypto_common_crypto_sha1 (mongoc_crypto_t *crypto,
4646
const size_t input_len,
4747
unsigned char *output /* OUT */)
4848
{
49-
return CC_SHA1 (input, input_len, output);
49+
if (CC_SHA1 (input, input_len, output)) {
50+
return true;
51+
}
52+
return false;
5053
}
5154

5255

0 commit comments

Comments
 (0)