Skip to content

Address distinct pointer type warnings on Windows #1308

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 14, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/libmongoc/tests/test-mcd-rpc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1958,7 +1958,7 @@ test_rpc_message_from_data_op_kill_cursors_invalid (void)
(size_t) expected_len, \
iovec.iov_len); \
ASSERT_WITH_MSG ( \
iovec.iov_base == (data + expected_base_index), \
(const uint8_t *) iovec.iov_base == (data + expected_base_index), \
"expected iov_base to point to byte %zu (%p), but got byte %zu (%p)", \
(size_t) (expected_base_index), \
(void *) (data + expected_base_index), \
Expand Down Expand Up @@ -2278,7 +2278,7 @@ test_rpc_message_to_iovecs_op_kill_cursors (void)

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

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

const int64_t cursor_id_0 = _int64_from_le (cursor_ids + 0);
const int64_t cursor_id_1 = _int64_from_le (cursor_ids + 1);
Expand Down