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

fixed an overflow error caused by choosing too small a type to store variables #4

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

raabh
Copy link

@raabh raabh commented Jul 30, 2023

Here is, in my best belief, the solution to the overflow bug. Depending on the number of variables, d4v2 chooses an appropriate type to save RAM.

It loses one bit because d4v2 encodes variables in unsigned types but adds the sign by hand afterward. Hence, d4v2 needs to "upgrade" to the next bigger type earlier.

This should fix my recently opened issue

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.

None yet

1 participant