Fix erroneous format string (int => long int)

As reported by cppcheck:

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

View file

@ -88,7 +88,7 @@ void generator_run(Generator_t * generator){
for (cur = 0; cur < generator->_node_count; cur++){
fprintf(stderr,"\r%s Selecting degrees... (%d of %d)",
fprintf(stderr,"\r%s Selecting degrees... (%ld of %ld)",
progress_indicator(),
cur + 1,
generator->_edge_count);