We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d6f138 commit 033a2deCopy full SHA for 033a2de
src/modeling/graphs.jl
@@ -1049,7 +1049,7 @@ end
1049
@inline canonicalize_range(r::StepRange{T,T}) where {T<:Base.BitInteger} = r
1050
@inline canonicalize_range(r::CartesianIndices) =
1051
CartesianIndices(map(canonicalize_range, r.indices))
1052
-@inline canonicalize_range(r::Base.OneTo{U}) where {U<:Unsigned} = One():last(r)
+@inline canonicalize_range(r::Base.OneTo{U}) where {U<:Unsigned} = One():(last(r)%Int)
1053
1054
function canonicalize_range(x)
1055
throw(
0 commit comments