Skip to content

Commit a7df73a

Browse files
authored
Fix atomic for infinite values (#315)
* Fix atomic for infinite values * Add Julia 1.2 to testing
1 parent a8441a6 commit a7df73a

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ os:
1111

1212
julia:
1313
- 1.1
14+
- 1.2
1415
- nightly
1516

1617
matrix:

appveyor.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
environment:
22
matrix:
33
- julia_version: 1.1
4+
- julia_version: 1.2
45
- julia_version: nightly
56

67
platform:

src/intervals/conversion.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,7 @@ else
102102
end
103103

104104
function atomic(::Type{Interval{T}}, x::S) where {T<:AbstractFloat, S<:AbstractFloat}
105-
isinf(x) && return wideinterval(x)#Interval{T}(prevfloat(T(x)), nextfloat(T(x)))
106-
# isinf(x) && return Interval{T}(prevfloat(x), nextfloat(x))
105+
isinf(x) && return wideinterval(T(x))
107106

108107
xrat = rationalize(x)
109108

0 commit comments

Comments
 (0)