Skip to content

Commit eaffc71

Browse files
Update base/float.jl
Co-authored-by: Lilith Orion Hafner <[email protected]>
1 parent 760c8be commit eaffc71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/float.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -689,7 +689,7 @@ function hash(x::Real, h::UInt)
689689
den >>= den_z
690690
pow += num_z - den_z
691691
# 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.
692+
# To be an Integer the denominator must be 1 and the power must be non-negative.
693693
if den == 1
694694
# left = ceil(log2(num)*2^pow)
695695
left = top_set_bit(abs(num)) + pow

0 commit comments

Comments
 (0)