Skip to content

Commit

Permalink
fix: wrong caching in relative FqField construction (#1952)
Browse files Browse the repository at this point in the history
* fix: wrong caching in relative FqField construction

* chore: bump version
  • Loading branch information
thofma authored Nov 28, 2024
1 parent c77cb33 commit 2ead31a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "Nemo"
uuid = "2edaba10-b0f1-5616-af89-8c11ac63239a"
version = "0.47.4"
version = "0.47.5"

[deps]
AbstractAlgebra = "c3fe647b-3220-5bb0-a1ea-a7954cac585d"
Expand Down
2 changes: 1 addition & 1 deletion src/flint/fq_default_extended.jl
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ function FqField(f::FqPolyRingElem, s::Symbol, cached::Bool = false, absolute::B
p = characteristic(K)
d = absolute_degree(K) * degree(f)
# Construct a "standard" copy of F_p^d
L = FqField(p, d, s, cached)
L = FqField(p, d, s, false)
L.isabsolute = absolute
L.isstandard = false
L.defining_poly = f
Expand Down
7 changes: 7 additions & 0 deletions test/flint/fq_default_extended-test.jl
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,13 @@
@test F(ZZ["x"][2] + 1) == b + 1
c = 2b^2 + 2b + 1
@test lift(Rx, c) == 2x^2 + 2x + 1

# fix for caching issues
R = GF(3, 2)
Rx, x = R["x"]
f = x
F, _ = finite_field(f, "b", cached = true)
@test F isa FqField
end

@testset "FqFieldElem.printing" begin
Expand Down

2 comments on commit 2ead31a

@thofma
Copy link
Member Author

@thofma thofma commented on 2ead31a Nov 29, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/120378

Tip: Release Notes

Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.

@JuliaRegistrator register

Release notes:

## Breaking changes

- blah

To add them here just re-invoke and the PR will be updated.

Tagging

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.47.5 -m "<description of version>" 2ead31a79c080d9087806589a101de052ed7db97
git push origin v0.47.5

Please sign in to comment.