Skip to content
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

Fix adapters/libevent.h compilation for 64-bit Windows #937

Merged
merged 1 commit into from
Jan 5, 2022

Conversation

pbtummillo
Copy link
Contributor

Where SOCKET is a 64-bit unsigned integer.

Where SOCKET is a 64-bit unsigned integer.
Copy link
Contributor

@bjosv bjosv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can verify that the libevent adapter gives the warnings:

..\hiredis\adapters/libevent.h(102,38): warning C4028: formal parameter 1 different from declaration
..\hiredis\adapters/libevent.h(171,76): warning C4028: formal parameter 1 different from declaration

without this change (on a Win10 via virtualbox 64bit).

When using an evutil_socket_t it matches the signature of event_callback_fn where the fd argument is an intptr_t on windows.
Works fine on Linux as well.

@michael-grunder michael-grunder merged commit 4ece9a0 into redis:master Jan 5, 2022
@michael-grunder
Copy link
Collaborator

Thanks, merged!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants