Skip to content

Commit 744a461

Browse files
committed
cluster: remove unneeded cast.
1 parent 1676c10 commit 744a461

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mongoc/mongoc-cluster.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2733,7 +2733,7 @@ _mongoc_cluster_try_recv (mongoc_cluster_t *cluster,
27332733
*/
27342734
memcpy (&msg_len, &buffer->data[buffer->off + pos], 4);
27352735
msg_len = BSON_UINT32_FROM_LE (msg_len);
2736-
if ((msg_len < 16) || (msg_len >(int32_t)cluster->max_bson_size)) {
2736+
if ((msg_len < 16) || (msg_len > cluster->max_bson_size)) {
27372737
bson_set_error (error,
27382738
MONGOC_ERROR_PROTOCOL,
27392739
MONGOC_ERROR_PROTOCOL_INVALID_REPLY,

0 commit comments

Comments
 (0)