Skip to content

Commit f2f148f

Browse files
committed
Fix ambiguity
1 parent a396fe2 commit f2f148f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Recombinations/matrices.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,8 @@ end
149149
# Default element type of recombination matrix.
150150
# In some specific cases we can use Bool...
151151
_default_eltype(::Type{T}, ::BoundaryCondition) where {T <: AbstractFloat} = T
152-
_default_eltype(::Type{T}, ::Derivative{0}) where {T} = Bool # Dirichlet BCs
153-
_default_eltype(::Type{T}, ::Derivative{1}) where {T} = Bool # Neumann BCs
152+
_default_eltype(::Type{T}, ::Derivative{0}) where {T <: AbstractFloat} = Bool # Dirichlet BCs
153+
_default_eltype(::Type{T}, ::Derivative{1}) where {T <: AbstractFloat} = Bool # Neumann BCs
154154
_default_eltype(::Type{T}, ::Vararg{AbstractDifferentialOp}) where {T <: AbstractFloat} = T
155155

156156
# Case (D(0), D(1), D(2), ...)

0 commit comments

Comments
 (0)