🌐 US-Proxy
class="logged-out env-production page-responsive" style="word-wrap: break-word;" >
Skip to content

Fix the return type of Integer.signum - #5892

Merged
pchiusano merged 2 commits into
trunkfrom
runarorama/integersignum
Sep 24, 2025
Merged

Fix the return type of Integer.signum#5892
pchiusano merged 2 commits into
trunkfrom
runarorama/integersignum

Conversation

@runarorama

Copy link
Copy Markdown
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
Copy Markdown
Member

Could use a regression test.

@pchiusano pchiusano left a comment

Copy link
Copy Markdown
Member

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