Skip to content

Commit 95c4687

Browse files
authored
Don't define > for StaticInt (#63)
`>` has working fall back already (`>(x, y) = y < x`) and this leads to unnecessary invalidations in some versions of julia
1 parent ef95ab9 commit 95c4687

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "Static"
22
uuid = "aedffcd0-7271-4cad-89d0-dc628f76c6d3"
33
authors = ["chriselrod", "ChrisRackauckas", "Tokazama"]
4-
version = "0.6.5"
4+
version = "0.6.6"
55

66
[deps]
77
IfElse = "615f187c-cbe4-4ef1-ba3b-2fcf58d6d173"

src/int.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ for f in [:(<<), :(>>), :(>>>)]
8787
Base.$f(x::Integer, @nospecialize(y::StaticInt)) = $f(x, Int(y))
8888
end
8989
end
90-
for f in [:(==), :(!=), :(<), :(), :(>), :()]
90+
for f in [:(==), :(!=), :(<), :(), :()]
9191
@eval begin
9292
Base.$f(::StaticInt{M}, ::StaticInt{N}) where {M,N} = $f(M, N)
9393
Base.$f(@nospecialize(x::StaticInt), y::Int) = $f(Int(x), y)

0 commit comments

Comments
 (0)