Skip to content

Commit f335863

Browse files
committed
Fix for 32 bits
1 parent 294e83f commit f335863

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/default.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ end
1313
function default_type(d::StaticArrays.Size{(1,)}, ::Type{T}) where T
1414
return Interval{T, StaticArrays.SVector{1, T}, typeof(d)}
1515
end
16-
function default_type(d::Int, ::Type{T}) where T
17-
if d == 1
16+
function default_type(d::Integer, ::Type{T}) where T
17+
if isone(d)
1818
return Interval{T, Vector{T}, typeof(d)}
1919
else
2020
return DefaultPolyhedron{T, Intersection{T, Vector{T}, typeof(d)}, Hull{T, Vector{T}, typeof(d)}}
@@ -42,8 +42,8 @@ _default_type(::Type{T}) where T = T
4242
_default_type(::Type{AbstractFloat}) = Float64
4343
default_library(::StaticArrays.Size, T::Type) = DefaultLibrary{_default_type(T)}()
4444
default_library(::StaticArrays.Size{(1,)}, T::Type) = IntervalLibrary{_default_type(T)}()
45-
function default_library(d::Int, ::Type{T}) where T
46-
if d == 1
45+
function default_library(d::Integer, ::Type{T}) where T
46+
if isone(d)
4747
return IntervalLibrary{_default_type(T)}()
4848
else
4949
return DefaultLibrary{_default_type(T)}()

0 commit comments

Comments
 (0)