Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Base.OneTo(::StaticInt) #41

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
end file with newline
  • Loading branch information
cscherrer committed Feb 8, 2022
commit d024b81ded73eb4334ba1364452cd75ac671ac9d
2 changes: 1 addition & 1 deletion src/int.jl
Original file line number Diff line number Diff line change
@@ -138,4 +138,4 @@ Base.UnitRange(start::StaticInt, stop) = UnitRange(Int(start), stop)
Base.UnitRange(start, stop::StaticInt) = UnitRange(start, Int(stop))
Base.UnitRange(start::StaticInt, stop::StaticInt) = UnitRange(Int(start), Int(stop))

Base.eltype(::Base.OneTo{StaticInt{N}}) where {N} = Int
Base.eltype(::Base.OneTo{StaticInt{N}}) where {N} = Int