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

Ensure correct bits are transferred between Python and C++ #20

Open
carljohnsen opened this issue Jun 17, 2022 · 0 comments
Open

Ensure correct bits are transferred between Python and C++ #20

carljohnsen opened this issue Jun 17, 2022 · 0 comments

Comments

@carljohnsen
Copy link
Collaborator

We've encountered a problem where the shape of one of the dimensions of a numpy array was set to be >2^32, which it shouldn't be. This was solved by casting to 32-bit, which would then ignore the 32 msb bits. However, this cannot be done for all of the struct values from Python, as some of the sizes are larger than 32-bit.

To solve this, we should implement macros for proper handling of these values. It would also have the added benefit of less boilerplate code.

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