Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace == nothing by === nothing #1502

Merged
merged 1 commit into from
Jul 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Nemo.jl
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ end
# check whether we are using flint version >= 3.0 (or some recent enough dev version),
# which changed the layout of some structs
_ptr = Libc.dlopen(libflint)
if Libc.dlsym(_ptr, :_fmpz_mod_vec_set_fmpz_vec_threaded; throw_error = false) != nothing
if Libc.dlsym(_ptr, :_fmpz_mod_vec_set_fmpz_vec_threaded; throw_error = false) !== nothing
const NEW_FLINT = true
libantic = libflint
libarb = libflint
Expand Down
2 changes: 1 addition & 1 deletion src/calcium/CalciumTypes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ mutable struct CalciumField <: Field

for (opt, value) in options
i = findfirst(isequal(opt), ca_ctx_options)
(i == nothing) && error("unknown option ", opt)
(i === nothing) && error("unknown option ", opt)
ccall((:ca_ctx_set_option, libcalcium), Nothing, (Ref{CalciumField}, Int, Int), C, i - 1, value)
end

Expand Down
4 changes: 2 additions & 2 deletions src/embedding/embedding.jl
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ function embed(k::T, K::T) where T <: FinField
# If k is already embedded in K, we return the corresponding embedding

tr = is_embedded(k, K)
if tr != nothing
if tr !== nothing
return tr
end

Expand All @@ -395,7 +395,7 @@ function embed(k::T, K::T) where T <: FinField

if degree(k) == degree(K)
tr = is_embedded(K, k)
if tr != nothing
if tr !== nothing
return preimage_map(tr)
end
end
Expand Down