-
Notifications
You must be signed in to change notification settings - Fork 70
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 integer overflow #354
Fix integer overflow #354
Conversation
Something about some of these changes doesn't quite seem right to me (I could be wrong). For example, if you write |
|
Got it - though I see a couple other ones, like for |
I didn't change the integer types in simulation because the global cell count is never computed in simulation. |
Does it not automatically up (or down) cast the input precision? That would make this much easier to maintain, otherwise every time one of the "special" variables (e.g., |
It does not automatically cast the inputs. I'll just make simulation use 8-byte integers for |
How is this different than what you already did? |
I'll just explain it at our meeting this afternoon. It'll be easier that way. |
Description
Fixes integer overflow for simulations with more than 2^31 cells.
Type of change
Please delete options that are not relevant.
Scope
If you cannot check the above box, please split your PR into multiple PRs that each have a common goal.