-
Notifications
You must be signed in to change notification settings - Fork 120
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
Inconsistent usize
on Windows platforms
#404
Comments
In our tests, we force |
(You could use |
Oh thanks for the answer @adamreichold, I thought usize would always be the size of a word, regardless of the program, but it makes things clearer now :) |
So this can be closed or do see something actionable we should do here, e.g. extend the documentation? |
I think this might be worth adding some words in the documentation, but I can close this issue and create another one if you prefer? |
Hello, I am writing a small Python library thanks to PyO3 and I use the NumPy bindings you provide to return NumPy arrays.
When testing my code on GitHub workflows, it succeeds on
ubuntu-latest
andmacos-latest
, but fails onwindows-latest
. I guess this is becauseusize
isu32
on the former platforms, andu64
on Windows, but I don't understand why it does not work...The error message is the following:
where the faulty line is unwrapping the
.extract()
call in:Any idea how to fix this, except by forcing either
u32
oru64
?The text was updated successfully, but these errors were encountered: