From: Matthew Fernandez Date: Thu, 29 Dec 2022 19:08:55 +0000 (-0800) Subject: sparse SparseMatrix: use a 'size_t' for 'size' X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4ca850a1958e98426b464efd9150b56c90f180e5;p=graphviz sparse SparseMatrix: use a 'size_t' for 'size' Squashes 20 -Wsign-conversion, -Wconversion warnings. --- diff --git a/lib/sparse/SparseMatrix.h b/lib/sparse/SparseMatrix.h index b8df858bd..8d3803265 100644 --- a/lib/sparse/SparseMatrix.h +++ b/lib/sparse/SparseMatrix.h @@ -12,6 +12,7 @@ #include #include +#include #include #ifdef __cplusplus @@ -36,7 +37,7 @@ struct SparseMatrix_struct { void *a; /* entry values. If NULL, pattern matrix */ int format;/* whether it is CSR, CSC, COORD. By default it is in CSR format */ int property; /* pattern_symmetric/symmetric/skew/hermitian*/ - int size;/* size of each entry. This allows for general matrix where each entry is, say, a matrix itself */ + size_t size;/* size of each entry. This allows for general matrix where each entry is, say, a matrix itself */ }; typedef struct SparseMatrix_struct* SparseMatrix;