Skip to content

divmod: fix aliasing error, add tests#180

Merged
holiman merged 1 commit intomasterfrom
fix_divmod
Jul 25, 2024
Merged

divmod: fix aliasing error, add tests#180
holiman merged 1 commit intomasterfrom
fix_divmod

Conversation

@holiman
Copy link
Copy Markdown
Owner

@holiman holiman commented Jul 25, 2024

This PR fixes #178, it also adds tests for it. While adding the tests, I found that the proposed fix in #179 was insufficient - we generally need to un-alias z and m too, since they're both used as returnvalues.

Otherwise this PR also contains some go fmt changes.

@codecov
Copy link
Copy Markdown

codecov bot commented Jul 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (75a5209) to head (1f98c61).

Additional details and impacted files
@@            Coverage Diff            @@
##            master      #180   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            5         5           
  Lines         1640      1643    +3     
=========================================
+ Hits          1640      1643    +3     

@holiman holiman merged commit ce90883 into master Jul 25, 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.

Small problem with DivMod

1 participant