Fix erroneous format string (int => long int)

As reported by cppcheck:

    src/generator.c:115:4: warning: %d in format string (no. 2) requires
    'int' but the argument type is 'signed long'.
    [invalidPrintfArgType_sint]
       fprintf(stderr,"\r%s Selecting degreex... (%d of %d)",
       ^
    src/generator.c:115:4: warning: %d in format string (no. 3) requires
    'int' but the argument type is 'signed long'.
    [invalidPrintfArgType_sint]
       fprintf(stderr,"\r%s Selecting degreex... (%d of %d)",
       ^
This commit is contained in:
Glenn Y. Rolland 2020-02-14 08:41:08 +01:00
parent f97ef9ac60
commit b4f2b28c99

View file

@ -110,9 +110,8 @@ void generator_run(Generator_t * generator){
for (cur = 0; cur < remaining; cur++){
nodeindex_t src_node;
nodeindex_t dst_node;
nodeindex_t deg;
fprintf(stderr,"\r%s Selecting degreex... (%d of %d)",
fprintf(stderr,"\r%s Selecting degreex... (%ld of %ld)",
progress_indicator(),
cur + 1 + generator->_node_count,
generator->_edge_count);