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 760c8be commit eaffc71
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 @@ -689,7 +689,7 @@ function hash(x::Real, h::UInt)
den >>= den_z
pow += num_z - den_z
# 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 positive.
# 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 = top_set_bit(abs(num)) + pow
Expand Down

0 comments on commit eaffc71

Please sign in to comment.