Skip to content
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

Prevent overflow in mean(::AbstractRange) and relax type constraint. #150

Merged
merged 3 commits into from
Sep 14, 2023

Conversation

chunjiw
Copy link
Contributor

@chunjiw chunjiw commented Sep 1, 2023

This is almost an exact copy of #115. This should fix JuliaLang/julia#50982 as well.

My understanding is that #115 is still open because too many commits are ahead of it. So someone needs to make a similar pull request. So here it is.... I have contributed to open source before but not experienced, so please let me know if I missed anything.

and relax type constraint
@codecov-commenter
Copy link

Codecov Report

Patch coverage is 100.00% of modified lines.

Files Changed Coverage
src/Statistics.jl 100.00%

📢 Thoughts on this report? Let us know!.

@mschauer
Copy link
Member

mschauer commented Sep 1, 2023

Looks good!

Copy link
Member

@nalimilan nalimilan left a comment

Choose a reason for hiding this comment

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

Looks good to me, thanks!

src/Statistics.jl Outdated Show resolved Hide resolved
chunjiw and others added 2 commits September 9, 2023 12:28
@ararslan ararslan merged commit b8ea3d2 into JuliaStats:master Sep 14, 2023
11 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.

mean(::UnitRange) overflows
5 participants