Skip to content

Commit

Permalink
return type
Browse files Browse the repository at this point in the history
  • Loading branch information
matbesancon committed Jul 31, 2023
1 parent b592fbf commit 5afdc3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/abstract_oracles.jl
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ function compute_weak_separation_point(lmo::SingleLastCachedLMO, direction, max_
lmo.last_vertex = v

Check warning on line 87 in src/abstract_oracles.jl

View check run for this annotation

Codecov / codecov/patch

src/abstract_oracles.jl#L85-L87

Added lines #L85 - L87 were not covered by tests
end
T = promote_type(eltype(v), eltype(direction))
return (v, zero(T))
return v, zero(T)

Check warning on line 90 in src/abstract_oracles.jl

View check run for this annotation

Codecov / codecov/patch

src/abstract_oracles.jl#L89-L90

Added lines #L89 - L90 were not covered by tests
end

function compute_extreme_point(
Expand Down Expand Up @@ -294,7 +294,7 @@ function compute_weak_separation_point(lmo::VectorCacheLMO, direction, max_value
push!(lmo.vertices, v)
end
T = promote_type(eltype(v), eltype(direction))
return v, zero(v)
return v, zero(T)
end

function compute_extreme_point(
Expand Down

0 comments on commit 5afdc3d

Please sign in to comment.