Skip to content

Fix bigand_int edgecase returning false #13987

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

Merged
merged 1 commit into from
Jul 23, 2025

Conversation

tompng
Copy link
Member

@tompng tompng commented Jul 23, 2025

No actual problem, but I encountered this

x = bignew(len, 1);
MEMCPY(x, z, BDIGIT, len); // copy zero
return rb_big_and(x, y); //=> false

@tompng tompng merged commit 5e5cec1 into ruby:master Jul 23, 2025
93 of 95 checks passed
@tompng tompng deleted the bigand_int_edgecase_fix branch July 23, 2025 17:12
matzbot pushed a commit that referenced this pull request Jul 24, 2025
	Fix bigand_int edgecase returning false (#13987)
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.

1 participant