Skip to content

Commit eed3e03

Browse files
mdbmeskevinAlbs
authored andcommitted
CDRIVER-5743 Followup fix for signedness warning (mongodb#1907)
1 parent 76dd846 commit eed3e03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libmongoc/src/mongoc/mongoc-secure-channel.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ mongoc_secure_channel_setup_ca (mongoc_stream_tls_secure_channel_t *secure_chann
269269

270270
// Read the whole file into one nul-terminated string
271271
pem_key = (const char *) bson_malloc0 ((size_t) length + 1u);
272-
bool read_ok = length == fread ((void *) pem_key, 1, length, file);
272+
bool read_ok = (size_t) length == fread ((void *) pem_key, 1, length, file);
273273
fclose (file);
274274
if (!read_ok) {
275275
MONGOC_WARNING ("Couldn't read certificate file '%s'", opt->ca_file);

0 commit comments

Comments
 (0)