Skip to content

Commit

Permalink
Fix type parameter warning, mild cleanup (#547)
Browse files Browse the repository at this point in the history
  • Loading branch information
dkarrasch authored Oct 25, 2022
1 parent 9813b95 commit 53bdcf3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "IntervalArithmetic"
uuid = "d1acc4aa-44c8-5952-acd4-ba5d80a2a253"
repo = "https://github.com/JuliaIntervals/IntervalArithmetic.jl.git"
version = "0.20.7"
version = "0.20.8"

[deps]
CRlibm = "96374032-68de-5a5b-8d9e-752f78720389"
Expand Down
9 changes: 1 addition & 8 deletions src/IntervalArithmetic.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# This file is part of the IntervalArithmetic.jl package; MIT licensed

__precompile__(true)

module IntervalArithmetic

import CRlibm
Expand Down Expand Up @@ -66,12 +64,7 @@ export
pow, extended_div,
setformat, @format

if VERSION >= v"1.5.0-DEV.124"
import Base: isdisjoint
else
export isdisjoint
end

import Base: isdisjoint

export
setindex # re-export from StaticArrays for IntervalBox
Expand Down
2 changes: 1 addition & 1 deletion src/multidim/intervalbox.jl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ IntervalBox(x) = IntervalBox(x...)
IntervalBox(X::IntervalBox, n) = foldl(×, Iterators.repeated(X, n))

# construct from two vectors giving bottom and top corners:
IntervalBox(lo::AbstractVector, hi::AbstractVector) where {N,T} = IntervalBox(force_interval.(lo, hi))
IntervalBox(lo::AbstractVector, hi::AbstractVector) = IntervalBox(force_interval.(lo, hi))

IntervalBox(lo::SVector{N,T}, hi::SVector{N,T}) where {N,T} = IntervalBox(force_interval.(lo, hi))

Expand Down

0 comments on commit 53bdcf3

Please sign in to comment.