From 5d1454250c3663b945c987b315efb8208a9366d8 Mon Sep 17 00:00:00 2001 From: Will Kimmerer Date: Sun, 7 May 2023 16:51:22 -0400 Subject: [PATCH] Missing Cindex methods, for SparseMatrixCSC ctor --- src/util.jl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/util.jl b/src/util.jl index 6371e5234..d05258607 100644 --- a/src/util.jl +++ b/src/util.jl @@ -459,4 +459,8 @@ end for op in [:<, :<=, :isless] @eval @inline Base.$op(a::Cindex{T}, b::Cindex{T}) where {T} = $op(T(a), T(b)) +end + +for op in [:typemin, :typemax] + @eval @inline Base.$op(::Type{Cindex{T}}) where {T} = Base.$op(T) end \ No newline at end of file