Skip to content

Commit

Permalink
Update base/float.jl
Browse files Browse the repository at this point in the history
Co-authored-by: Lilith Orion Hafner <[email protected]>
  • Loading branch information
oscardssmith and LilithHafner committed Jul 24, 2023
1 parent eaffc71 commit 08fdf0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/float.jl
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,7 @@ function hash(x::Real, h::UInt)
# If the real is an Int64, UInt64, or Float64, hash as those types.
# To be an Integer the denominator must be 1 and the power must be non-negative.
if den == 1
# left = ceil(log2(num)*2^pow)
# left = ceil(log2(num*2^pow))
left = top_set_bit(abs(num)) + pow
# 2^-1074 is the minimum Float64 so if the power is smaller, not a Float64
if -1074 <= pow
Expand Down

0 comments on commit 08fdf0a

Please sign in to comment.