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

ALL_MOUSE_EVENTS and mousemask have incompatible types #128

Open
gyscos opened this issue Apr 21, 2017 · 0 comments
Open

ALL_MOUSE_EVENTS and mousemask have incompatible types #128

gyscos opened this issue Apr 21, 2017 · 0 comments

Comments

@gyscos
Copy link
Collaborator

gyscos commented Apr 21, 2017

  • In C, ALL_MOUSE_EVENTS is defined in ncurses.h as a macro, so doesn't really have a type.
    mousemask takes a mmask_t, which is defined the same as chtype (unsigned 32 bits).

  • In rust, ALL_MOUSE_EVENTS is defined as a i32.
    mousemask takes a mmask_t, which is defined as chtype.

I think ALL_MOUSE_EVENTS should be defined as a mmask_t instead of i32.

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

No branches or pull requests

1 participant