]> granicus.if.org Git - graphviz/commitdiff
squash -Wconversion warning in size_of_matrix_type
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 22 May 2021 00:54:47 +0000 (17:54 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 28 May 2021 04:07:28 +0000 (21:07 -0700)
lib/sparse/SparseMatrix.c

index d98983c7cda9dd89e165f5f1976444a56fe90373..34830f809219df7ae201cfae46a271044f1bf466 100644 (file)
@@ -21,7 +21,7 @@
 #include <stddef.h>
 
 static size_t size_of_matrix_type(int type){
-  int size = 0;
+  size_t size = 0;
   switch (type){
   case MATRIX_TYPE_REAL:
     size = sizeof(real);