We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 760c8be commit eaffc71Copy full SHA for eaffc71
base/float.jl
@@ -689,7 +689,7 @@ function hash(x::Real, h::UInt)
689
den >>= den_z
690
pow += num_z - den_z
691
# If the real is an Int64, UInt64, or Float64, hash as those types.
692
- # 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.
693
if den == 1
694
# left = ceil(log2(num)*2^pow)
695
left = top_set_bit(abs(num)) + pow
0 commit comments