Skip to content

Commit db53e68

Browse files
author
oscarddssmith
committed
more typo
1 parent 8e2b5c3 commit db53e68

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Primes.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,9 +269,9 @@ function factor!(n::T, h::AbstractDict{K,Int}) where {T<:Integer,K<:Integer}
269269
return factor!(checked_neg(n), h)
270270
end
271271
elseif n == 0
272-
h[n] = 0
272+
h[n] = 1
273273
return h
274-
elseif trailing_zeros(n) > 1
274+
elseif trailing_zeros(n) > 0
275275
tz = trailing_zeros(n)
276276
increment!(h, tz, 2)
277277
n >>= tz

0 commit comments

Comments
 (0)