Skip to content

Commit c0db7a6

Browse files
Merge pull request #22 from JuliaComputing/loosen_types
loosen types on prev/next floating handling
2 parents 51a8af9 + 6e425e5 commit c0db7a6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/utils.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -213,15 +213,15 @@ const DEFAULT_LINSOLVE = DefaultLinSolve()
213213
214214
Move `x` one floating point towards x0.
215215
"""
216-
function prevfloat_tdir(x::T, x0::T, x1::T)::T where {T}
216+
function prevfloat_tdir(x, x0, x1)
217217
x1 > x0 ? prevfloat(x) : nextfloat(x)
218218
end
219219

220-
function nextfloat_tdir(x::T, x0::T, x1::T)::T where {T}
220+
function nextfloat_tdir(x, x0, x1)
221221
x1 > x0 ? nextfloat(x) : prevfloat(x)
222222
end
223223

224-
function max_tdir(a::T, b::T, x0::T1, x1::T1)::T where {T, T1}
224+
function max_tdir(a, b, x0, x1)
225225
x1 > x0 ? max(a, b) : min(a, b)
226226
end
227227

0 commit comments

Comments
 (0)