Skip to content

Commit

Permalink
Merge ab46e1f into 9de3b38
Browse files Browse the repository at this point in the history
  • Loading branch information
fieker authored Sep 21, 2023
2 parents 9de3b38 + ab46e1f commit aca033b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/LocalField/Elem.jl
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,9 @@ function Base.:(^)(a::LocalFieldElem, n::Int)
e = absolute_ramification_index(parent(a))
v = valuation(n, prime(parent(a)))
if v > 0
b = setprecision(a.data, precision(a.data)+v)
b = setprecision(base_ring(a.data), precision(a.data)+v) do
setprecision(a.data, precision(a.data)+v)
end
else
b = a.data
end
Expand Down
2 changes: 1 addition & 1 deletion src/LocalField/Types.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ abstract type EisensteinLocalField <: LocalFieldParameter end
abstract type UnramifiedLocalField <: LocalFieldParameter end
abstract type GenericLocalField <: LocalFieldParameter end

mutable struct LocalField{S, T} <: NonArchLocalField
@attributes mutable struct LocalField{S, T} <: NonArchLocalField
def_poly::Function #Int -> Poly at prec n
def_poly_cache::Dict{Int, Generic.Poly{S}}
S::Symbol
Expand Down

0 comments on commit aca033b

Please sign in to comment.