Skip to content

math.big: fix zero base in big_mod_pow(), add tests#24940

Merged
spytheman merged 1 commit into
vlang:masterfrom
tankf33der:pow_1
Jul 21, 2025
Merged

math.big: fix zero base in big_mod_pow(), add tests#24940
spytheman merged 1 commit into
vlang:masterfrom
tankf33der:pow_1

Conversation

@tankf33der

@tankf33der tankf33der commented Jul 21, 2025

Copy link
Copy Markdown
Contributor

Fix big_mod_pow() if base is zero.
Tests were also added for all three functions where there are powers - pow(), mod_pow(), big_mod_pow().
Found via my test-suite.

@huly-for-github

Copy link
Copy Markdown

Connected to Huly®: V_0.6-23409

@spytheman spytheman merged commit 8578fd4 into vlang:master Jul 21, 2025
76 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

Development

Successfully merging this pull request may close these issues.

2 participants