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

bigint: Fix calculation of size for multiply temporaries #188

Merged
merged 1 commit into from
Apr 20, 2016

Conversation

koverstreet
Copy link
Contributor

When x.len() and y.len() are both equal and odd, we have x1.len() + y1.len() + 1
(the required size to multiply x1 and y1) > y.len() + 1

This fixes #187

@cuviper
Copy link
Member

cuviper commented Apr 20, 2016 via email

When x.len() and y.len() are both equal and odd, we have x1.len() + y1.len() + 1
(the required size to multiply x1 and y1) > y.len() + 1

This fixes rust-num#187
@koverstreet
Copy link
Contributor Author

Done

@cuviper
Copy link
Member

cuviper commented Apr 20, 2016 via email

@homu homu merged commit 1e65e9d into rust-num:master Apr 20, 2016
homu added a commit that referenced this pull request Apr 20, 2016
bigint: Fix calculation of size for multiply temporaries

When x.len() and y.len() are both equal and odd, we have x1.len() + y1.len() + 1
(the required size to multiply x1 and y1) > y.len() + 1

This fixes #187
@homu
Copy link
Contributor

homu commented Apr 20, 2016

⚡ Test exempted - status

remexre pushed a commit to remexre/num that referenced this pull request Jun 1, 2017
Extract serde_json::Map and serde_json::Number opaque newtypes
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.

Failing assertion while multiplying two BigUints
3 participants