Skip to content

Commit

Permalink
RandomExtensions.make: avoid self-recursion (#1204)
Browse files Browse the repository at this point in the history
  • Loading branch information
fingolfin authored Sep 13, 2023
1 parent 6eea5a1 commit de7f9f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/FunField/DegreeLocalization.jl
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function check_parent(a::KInftyElem{T}, b::KInftyElem{T}) where T <: FieldEleme
end

function Base.hash(a::KInftyElem, h::UInt)
b = 0x32ba43ad011affd1%UInt
b = 0x32ba43ad011affd1%UInt
return xor(b, hash(data(a), h))
end

Expand Down Expand Up @@ -384,7 +384,7 @@ function RandomExtensions.make(S::KInftyRing, vs...)
if length(vs) == 1 && elem_type(R) == Random.gentype(vs[1])
RandomExtensions.Make(S, vs[1]) # forward to default Make constructor
else
make(S, make(R, vs...))
RandomExtensions.Make(S, make(R, vs...))
end
end

Expand Down

0 comments on commit de7f9f9

Please sign in to comment.