Skip to content

Commit 12ed7ce

Browse files
committed
ulp_error_maximum: use Fix1
As suggested by devmotion on PR JuliaStats#99.
1 parent 4fc1b9d commit 12ed7ce

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

test/common/ULPError.jl

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,6 @@ module ULPError
4040
ulp_error(func BigFloat, func, x)
4141
end
4242
function ulp_error_maximum(func::Func, iterator) where {Func}
43-
function f(x::AbstractFloat)
44-
ulp_error(func, x)
45-
end
46-
maximum(f, iterator)
43+
maximum(Base.Fix1(ulp_error, func), iterator)
4744
end
4845
end

0 commit comments

Comments
 (0)