Skip to content

Commit

Permalink
Fix type stability of deepcopy_internal method
Browse files Browse the repository at this point in the history
  • Loading branch information
Liozou committed Mar 20, 2023
1 parent 8ca8c58 commit e47c39e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/functions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ end

function Base.deepcopy_internal(x::BigRational, stackdict::IdDict)
if haskey(stackdict, x)
return stackdict[x]
return stackdict[x]::BigRational
end
y = MPQ.set(x)
stackdict[x] = y
Expand Down

0 comments on commit e47c39e

Please sign in to comment.