Skip to content

Commit 2f9c9f7

Browse files
authored
Address distinct pointer type warnings on Windows (#1308)
1 parent ca45383 commit 2f9c9f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libmongoc/tests/test-mcd-rpc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1958,7 +1958,7 @@ test_rpc_message_from_data_op_kill_cursors_invalid (void)
19581958
(size_t) expected_len, \
19591959
iovec.iov_len); \
19601960
ASSERT_WITH_MSG ( \
1961-
iovec.iov_base == (data + expected_base_index), \
1961+
(const uint8_t *) iovec.iov_base == (data + expected_base_index), \
19621962
"expected iov_base to point to byte %zu (%p), but got byte %zu (%p)", \
19631963
(size_t) (expected_base_index), \
19641964
(void *) (data + expected_base_index), \
@@ -2278,7 +2278,7 @@ test_rpc_message_to_iovecs_op_kill_cursors (void)
22782278

22792279
ASSERT_CMPSIZE_T (iovec->iov_len, ==, 16u);
22802280

2281-
const int64_t *const cursor_ids = iovec->iov_base;
2281+
const int64_t *const cursor_ids = (const int64_t *) iovec->iov_base;
22822282

22832283
const int64_t cursor_id_0 = _int64_from_le (cursor_ids + 0);
22842284
const int64_t cursor_id_1 = _int64_from_le (cursor_ids + 1);

0 commit comments

Comments
 (0)