Skip to content

Commit 251db18

Browse files
committed
CDRIVER-887: Incorrect cast for PRId64
1 parent 1694b35 commit 251db18

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/mongoc/mongoc-stream.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -489,8 +489,8 @@ _mongoc_stream_writev_full (mongoc_stream_t *stream,
489489

490490
if (r != total_bytes) {
491491
bson_set_error (error, MONGOC_ERROR_STREAM, MONGOC_ERROR_STREAM_SOCKET,
492-
"Failure to send all requested bytes (only sent: %" PRId64 "/%" PRId64 " in %dms) during socket delivery",
493-
(long long)r, (unsigned long long)total_bytes, timeout_msec);
492+
"Failure to send all requested bytes (only sent: %" PRIu64 "/%" PRId64 " in %dms) during socket delivery",
493+
(uint64_t) r, (int64_t)total_bytes, timeout_msec);
494494

495495
RETURN(false);
496496
}

0 commit comments

Comments
 (0)