Skip to content

Commit

Permalink
GraphBLAS: Avoid compiler warnings about format specifier on 32-bit L…
Browse files Browse the repository at this point in the history
…inux
  • Loading branch information
mmuetzel committed Nov 12, 2023
1 parent 19f1109 commit 3c19c16
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions GraphBLAS/JITpackage/Source/grb_jitpackage.c
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ int main (int argc, char **argv)
//----------------------------------------------------------------------

fprintf (fp, "// %s:\n", argv [k]) ;
fprintf (fp, "uint8_t GB_JITpackage_%d [%lu] = {\n", k-1, dsize) ;
fprintf (fp, "uint8_t GB_JITpackage_%d [%zu] = {\n", k-1, dsize) ;
for (int64_t k = 0 ; k < dsize ; k++)
{
fprintf (fp, "%3d,", dst [k]) ;
Expand All @@ -181,8 +181,8 @@ int main (int argc, char **argv)
// print the index
//--------------------------------------------------------------------------

printf ("Total uncompressed: %lu bytes\n", total_uncompressed_size) ;
printf ("Total compressed: %lu bytes\n", total_compressed_size) ;
printf ("Total uncompressed: %zu bytes\n", total_uncompressed_size) ;
printf ("Total compressed: %zu bytes\n", total_compressed_size) ;
printf ("Compression: %g\n",
(double) total_compressed_size / (double) total_uncompressed_size) ;

Expand All @@ -200,7 +200,7 @@ int main (int argc, char **argv)
}
}
// append this file to the index
fprintf (fp, " { %8lu, %8lu, GB_JITpackage_%-3d, \"%s\" },\n",
fprintf (fp, " { %8zu, %8zu, GB_JITpackage_%-3d, \"%s\" },\n",
Uncompressed_size [k], Compressed_size [k], k-1, name) ;
}
fprintf (fp, "} ;\n#endif\n\n") ;
Expand Down

0 comments on commit 3c19c16

Please sign in to comment.