We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 917bbac + 648ace4 commit 979087aCopy full SHA for 979087a
Project.toml
@@ -1,7 +1,7 @@
1
name = "Static"
2
uuid = "aedffcd0-7271-4cad-89d0-dc628f76c6d3"
3
authors = ["chriselrod", "ChrisRackauckas", "Tokazama"]
4
-version = "0.7.6"
+version = "0.7.7"
5
6
[deps]
7
IfElse = "615f187c-cbe4-4ef1-ba3b-2fcf58d6d173"
src/Static.jl
@@ -43,6 +43,8 @@ end
43
44
Base.getindex(x::Tuple, ::StaticInt{N}) where {N} = getfield(x, N)
45
46
+Base.zero(@nospecialize(::StaticInt)) = StaticInt{0}()
47
+
48
Base.to_index(x::StaticInt) = known(x)
49
function Base.checkindex(::Type{Bool}, inds::AbstractUnitRange, ::StaticNumber{N}) where {N}
50
checkindex(Bool, inds, N)
0 commit comments