Skip to content

Commit

Permalink
fix factor bug, #1609
Browse files Browse the repository at this point in the history
  • Loading branch information
fieker committed Sep 18, 2024
1 parent a98b156 commit bf0c9c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Misc/Integer.jl
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ function factor_insert!(r::Dict{ZZRingElem,Int}, N::ZZRingElem, scale::Int=1)
end
fac, N = is_perfect_power_with_data(N)
if fac > 1
return factor_insert!(r, N, fac)
return factor_insert!(r, N, fac * scale)
end
if is_prime(N)
@assert !haskey(r, N)
Expand Down

0 comments on commit bf0c9c5

Please sign in to comment.