Skip to content

Commit be04a7e

Browse files
author
mdbmes
authored
CDRIVER-5743 Followup fix for signedness warning (#1907)
1 parent c186295 commit be04a7e

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
@@ -305,7 +305,7 @@ mongoc_secure_channel_setup_ca (mongoc_stream_tls_secure_channel_t *secure_chann
305305

306306
// Read the whole file into one nul-terminated string
307307
pem_key = (const char *) bson_malloc0 ((size_t) length + 1u);
308-
bool read_ok = length == fread ((void *) pem_key, 1, length, file);
308+
bool read_ok = (size_t) length == fread ((void *) pem_key, 1, length, file);
309309
fclose (file);
310310
if (!read_ok) {
311311
MONGOC_WARNING ("Couldn't read certificate file '%s'", opt->ca_file);

0 commit comments

Comments
 (0)