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

Fix nullness check to src value in MOD32 and DIV32 #97

Merged
merged 2 commits into from
Jan 5, 2024

Conversation

pcy190
Copy link
Contributor

@pcy190 pcy190 commented Jan 3, 2024

Fixes #95
Fixes #96

Copy link
Owner

@qmonnet qmonnet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, many thanks!

Like for the other PR, I added non-regression tests. Can you please sign-off your commit and update the PR again?

pcy190 and others added 2 commits January 5, 2024 11:42
We had an issue in the interpreter, because for 32-bit div and mod we
would check that the whole (64-bit long) divisor was not 0, but then
we'd only use the last 32 bits of this divisor to perform the arithmetic
operation. We fixed the bug, but let's add a non-regression test to
catch this in the future.

Link: qmonnet#95
Link: qmonnet#96
Signed-off-by: Quentin Monnet <[email protected]>
Signed-off-by: Richard Smith <[email protected]>
@pcy190
Copy link
Contributor Author

pcy190 commented Jan 5, 2024

Updated the patch.

@qmonnet qmonnet merged commit 9bd61f2 into qmonnet:main Jan 5, 2024
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants