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 0fcac7a commit 1f2b5e0Copy full SHA for 1f2b5e0
base/float.jl
@@ -695,7 +695,7 @@ function hash(x::Real, h::UInt)
695
left = top_set_bit(abs(num)) + pow
696
# 2^-1074 is the minimum Float64 so if the power is smaller, not a Float64
697
if -1074 <= pow
698
- if pow >= 0 # if pow is negative, it isn't an integer
+ if 0 <= pow # if pow is non-negative, it is an integer
699
left <= 63 && return hash(Int64(num) << Int(pow), h)
700
left <= 64 && !signbit(num) && return hash(UInt64(num) << Int(pow), h)
701
end # typemin(Int64) handled by Float64 case
0 commit comments