JuliaStats / Statistics.jl

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

Fix overflow in `mean(::AbstractRange)` #122

Closed jishnub closed 2 years ago

jishnub commented 2 years ago

Fixes #120, now

julia> mean(Int8(123):Int8(123))
123.0
codecov-commenter commented 2 years ago

Codecov Report

Merging #122 (9eb9a8e) into master (0588f2c) will increase coverage by 0.00%. The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master     #122   +/-   ##
=======================================
  Coverage   96.94%   96.95%           
=======================================
  Files           1        1           
  Lines         426      427    +1     
=======================================
+ Hits          413      414    +1     
  Misses         13       13           
Impacted Files Coverage Δ
src/Statistics.jl 96.95% <100.00%> (+<0.01%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 0588f2c...9eb9a8e. Read the comment docs.

jishnub commented 2 years ago

Seems to be a duplicate of #115