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

mod bug fix #212

Closed
wants to merge 1 commit into from
Closed

mod bug fix #212

wants to merge 1 commit into from

Conversation

mjafaari
Copy link

@mjafaari mjafaari commented Feb 4, 2021

No description provided.

@mwoss
Copy link
Member

mwoss commented Feb 4, 2021

Hi! Could you provide new tests for your change? Current ones were not enough to cover edge cases.

Comment on lines +614 to +616
for res.Cmp(d2) > 0 {
res = res.Sub(d2)
}
Copy link
Member

Choose a reason for hiding this comment

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

This would fail on basic cases like 7 mod 2, also it does not support negative numbers

@mwoss
Copy link
Member

mwoss commented Jan 10, 2024

Issue fixed in #258 and then in #317. Closing.

@mwoss mwoss closed this Jan 10, 2024
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

3 participants