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

Type handle_as_int as uintptr_t in signature #574

Merged
merged 2 commits into from
Aug 18, 2020

Conversation

jakirkham
Copy link
Member

Go ahead and type handle_as_int as uintptr_t in the function signature, Cython already knows how to convert generic Python ints to uintptr_t without intervention. Plus it simplifies the code internally.

@jakirkham jakirkham requested a review from a team as a code owner August 11, 2020 22:48
@jakirkham jakirkham mentioned this pull request Aug 11, 2020
@jakirkham
Copy link
Member Author

Linting error is being fixed in PR ( #575 ).

@jakirkham
Copy link
Member Author

rerun tests

@jakirkham jakirkham requested a review from madsbk August 14, 2020 19:49
@jakirkham jakirkham force-pushed the type_hdl_int branch 2 times, most recently from 91f0719 to 10ed126 Compare August 14, 2020 19:56
Go ahead and type `handle_as_int` as `uintptr_t` in the function
signature, Cython already knows how to convert generic Python `int`s to
`uintptr_t` without intervention. Plus it simplifies the code
internally.
@jakirkham
Copy link
Member Author

Any thoughts on this @madsbk?

Copy link
Member

@madsbk madsbk left a comment

Choose a reason for hiding this comment

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

LGTM

@jakirkham
Copy link
Member Author

Thanks Mads! 😄

@jakirkham jakirkham merged commit 23df3e9 into rapidsai:branch-0.16 Aug 18, 2020
@jakirkham jakirkham deleted the type_hdl_int branch August 18, 2020 08:17
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.

2 participants