Skip to content

Commit ddfd7ab

Browse files
authored
Merge pull request #7 from findmyway/fix_ci
fix bug found in ci
2 parents d4b705f + d8e7a19 commit ddfd7ab

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/basic.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ struct Space{T}
66
s::T
77
end
88

9-
Space(s::Type{T}) where {T<:Number} = Space(typemin(T):typemax(T))
9+
Space(s::Type{T}) where {T<:Integer} = Space(typemin(T):typemax(T))
10+
Space(s::Type{T}) where {T<:AbstractFloat} = Space(typemin(T) .. typemax(T))
1011

1112
Space(x, dims::Int...) = Space(Fill(x, dims))
1213
Space(x::Type{T}, dim::Int, extra_dims::Int...) where {T<:Integer} = Space(Fill(typemin(x):typemax(T), dim, extra_dims...))

0 commit comments

Comments
 (0)