Skip to content

Commit

Permalink
Some fixes (#1722)
Browse files Browse the repository at this point in the history
  • Loading branch information
fingolfin authored Jan 16, 2025
1 parent d45ee3f commit 577504b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/LocalField/LocalField.jl
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ elem_type(::Type{LocalField{S, T}}) where {S <: FieldElem, T <: LocalFieldParame
#
################################################################################

is_domain_type(::Type{S}) where S <: LocalField = true
is_exact_type(::Type{S}) where S <: LocalField = false
is_domain_type(::Type{<: LocalFieldElem}) = true
is_exact_type(::Type{<: LocalFieldElem}) = false
isfinite(K::LocalField) = isfinite(base_field(K))

################################################################################
Expand Down
2 changes: 2 additions & 0 deletions src/Misc/RelFiniteField.jl
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,8 @@ iszero(x::RelFinFieldElem) = iszero(x.data)
isone(x::RelFinFieldElem) = isone(x.data)
is_unit(x::RelFinFieldElem) = !iszero(x)

hash(x::RelFinFieldElem, h::UInt) = hash(x.data, h)

==(x::RelFinFieldElem{S, T}, y::RelFinFieldElem{S, T}) where {S, T} = x.data == y.data

coeff(a::RelFinFieldElem, i::Int) = coeff(a.data, i)
Expand Down
2 changes: 2 additions & 0 deletions src/NumField/Embedded.jl
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ base_ring_type(::Type{<:EmbeddedNumField}) = QQField

data(x::EmbeddedNumFieldElem) = x.element

characteristic(::EmbeddedNumField) = 0

function embedded_field(K::SimpleNumField, i::NumFieldEmb)
@assert number_field(i) === K
E = EmbeddedNumField(K, i)
Expand Down

0 comments on commit 577504b

Please sign in to comment.