Skip to content

Commit

Permalink
fix factor bug, #1609 (#1610)
Browse files Browse the repository at this point in the history
Co-authored-by: MZ <[email protected]>
  • Loading branch information
fieker and HechtiDerLachs authored Sep 18, 2024
1 parent d0cb2ab commit 5f8c496
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 5f8c496

Please sign in to comment.