Skip to content

Commit 63981c0

Browse files
committed
CDRIVER-424 make conditional explicit
1 parent dfd158b commit 63981c0

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
@@ -788,7 +788,7 @@ _mongoc_cluster_select (mongoc_cluster_t *cluster,
788788
*/
789789
if (max_score) {
790790
for (i = 0; i < MONGOC_CLUSTER_MAX_NODES; i++) {
791-
if (nodes[i] && scores[i] < max_score) {
791+
if (nodes[i] && (scores[i] < max_score)) {
792792
nodes[i] = NULL;
793793
count--;
794794
}

0 commit comments

Comments
 (0)