Skip to content

Commit 97b0748

Browse files
committed
CDRIVER-756: n_return is unsigned int... its not going to be negative
1 parent 8796788 commit 97b0748

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/mock_server/request.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ request_matches_query (const request_t *request,
179179
/* quirk: commands from mongoc_client_command_simple have n_return 1,
180180
* from mongoc_topology_scanner_t have n_return -1
181181
*/
182-
n_return_equal = abs (rpc->query.n_return) == abs (n_return);
182+
n_return_equal = abs (rpc->query.n_return) == n_return;
183183
}
184184

185185
if (! n_return_equal) {

0 commit comments

Comments
 (0)