Closed uchkw closed 3 years ago
Thanks for reporting! I'll submit a fix shortly. In the meantime, could you confirm for me that defining the following is a workaround?
julia> function GaloisFields._downgrade(F::Type{GaloisFields.PrimeField{I, 2}}, i::GaloisFields.BinaryField) where I
i.n == (i.n & 1) || throw(GaloisFields.InclusionError("$i is not contained in $F"))
return F(i.n & 1)
end
Yes, it worked! Thanks for fixing it!!
I confirmed that the updated version worked well. Thanks!
FYI I just released v1.1 which includes this fix and some dependency updates.
Thanks for letting me know! I'll check it and report if I found anything wrong.
In the REPL on Visual Studio Code, I got StackOverflowError with the same syntax described above.