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 function or bitwise #307

Merged
merged 1 commit into from
Jul 14, 2024
Merged

Fix function or bitwise #307

merged 1 commit into from
Jul 14, 2024

Conversation

iTanChi
Copy link

@iTanChi iTanChi commented Jul 14, 2024

Fixed issue: #290

@@ -611,8 +611,14 @@ class BigInteger internal constructor(wordArray: WordArray, requestedSign: Sign)
return BigInteger(arithmetic.and(this.magnitude, other.magnitude), sign)
}

/** Returns a new BigInt with bits combining [this], [other] doing a bitwise `|`/`or` operation. Forces sign to positive. */
Copy link
Owner

Choose a reason for hiding this comment

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

Why are we forcing the sign to positive here?

Copy link
Owner

Choose a reason for hiding this comment

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

I think I understand the reasoning behind forcing to positive. I added a TODO and I'll reopen the issue 290 after this is merged.

@ionspin ionspin mentioned this pull request Jul 14, 2024
@ionspin ionspin merged commit 36ecfe1 into ionspin:main Jul 14, 2024
1 check 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
Development

Successfully merging this pull request may close these issues.

3 participants