Skip to content

Commit 75dee19

Browse files
add valid_int_types
1 parent 3eef43a commit 75dee19

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/Object_Methods/Matrix_Methods.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ function GrB_Matrix_clear(A::GrB_Matrix)
9292
)
9393
end
9494

95-
function GrB_Matrix_setElement(C::GrB_Matrix, X::T, I::U, J::U) where {U <: GrB_Index, T <: Integer}
95+
function GrB_Matrix_setElement(C::GrB_Matrix, X::T, I::U, J::U) where {U <: GrB_Index, T <: valid_int_types}
9696
fn_name = "GrB_Matrix_setElement_" * get_suffix(T)
9797
return GrB_Info(
9898
ccall(

src/SuiteSparseGraphBLAS.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ types = ["BOOL", "INT8", "UINT8", "INT16", "UINT16", "INT32", "UINT32",
1515

1616
GrB_Index = Union{Int64, UInt64}
1717
valid_types = Union{Bool, Int8, UInt8, Int16, UInt16, Int32, UInt32, Int64, UInt64, Float32, Float64}
18+
valid_int_types = Union{Bool, Int8, UInt8, Int16, UInt16, Int32, UInt32, Int64, UInt64}
1819

1920
unary_operators = ["IDENTITY", "AINV", "MINV"]
2021

0 commit comments

Comments
 (0)