Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@runarorama
Copy link
Contributor

The advertized type of Integer.signum is Integer -> Int, but it was actually returning an Integer, leading to strange results. This fix converts that Integer to an Int before returning.

@runarorama runarorama requested a review from dolio September 24, 2025 03:40
@pchiusano
Copy link
Member

Could use a regression test.

Copy link
Member

@pchiusano pchiusano left a comment

Choose a reason for hiding this comment

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

cool

@pchiusano pchiusano added the ready-to-merge Apply this to a PR and it will get merged automatically once CI passes and 1 reviewer has approved label Sep 24, 2025
@pchiusano pchiusano merged commit d85de68 into trunk Sep 24, 2025
31 checks passed
@pchiusano pchiusano deleted the runarorama/integersignum branch September 24, 2025 19:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-to-merge Apply this to a PR and it will get merged automatically once CI passes and 1 reviewer has approved

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants