JuliaStats / Statistics.jl

The Statistics stdlib that ships with Julia.
https://juliastats.org/Statistics.jl/dev/
Other
71 stars 40 forks source link

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

Closed chunjiw closed 11 months ago

chunjiw commented 1 year ago

This is almost an exact copy of #115. This should fix https://github.com/JuliaLang/julia/issues/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.

codecov-commenter commented 1 year ago

Codecov Report

Patch coverage is 100.00% of modified lines.

Files Changed Coverage
src/Statistics.jl 100.00%

:loudspeaker: Thoughts on this report? Let us know!.

mschauer commented 1 year ago

Looks good!