Skip to content

Commit

Permalink
Merge pull request #7 from findmyway/fix_ci
Browse files Browse the repository at this point in the history
fix bug found in ci
  • Loading branch information
findmyway authored Jun 4, 2022
2 parents d4b705f + d8e7a19 commit ddfd7ab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/basic.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ struct Space{T}
s::T
end

Space(s::Type{T}) where {T<:Number} = Space(typemin(T):typemax(T))
Space(s::Type{T}) where {T<:Integer} = Space(typemin(T):typemax(T))
Space(s::Type{T}) where {T<:AbstractFloat} = Space(typemin(T) .. typemax(T))

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

0 comments on commit ddfd7ab

Please sign in to comment.