-
Notifications
You must be signed in to change notification settings - Fork 112
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 narrowing errors by replacing int by ssize_t #725
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #725 +/- ##
=======================================
Coverage 80.76% 80.76%
=======================================
Files 162 162
Lines 46715 46715
Branches 11427 11427
=======================================
Hits 37729 37729
Misses 6736 6736
Partials 2250 2250
|
Not sure about this, gonna need to read about it. It seems that stuff were purposefully using int? |
Perhaps, I don't really understand much myself. |
The original int is I think really weird, to a point of just being wrong. Pointer offsets shouldn't be a int, I guess that leads to compiler errors in newer versions? On most machines they are 32 bit, but all strides etc should usually be the same size as pointers, which are 64 bit. |
Great, thanks a lot @aseyboldt for the "pointer" to I'm busy with some other stuff at the moment, but I'll come back to this. I'd like to enable some basic tests on macos (which I expect to fail), and then we'll be able to test properly. |
Was hoping for an easy way out with conda-forge/sunode-feedstock#35, but it didn't work. |
Ref: pymc-devs/sunode#46 (comment)
Description
I don't actually know any C++ or have any idea if this is a sensible change. But it seems like it may fix some obscure errors on Mac with sunode.
Related Issue
Checklist
Type of change