Fix erroneous format string (int => long int)

As reported by cppcheck:

    src/degree.c:91:4: warning: %d in format string (no. 2) requires 'int'
    but the argument type is 'signed long'. [invalidPrintfArgType_sint]
       printf("\r%s Selecting degrees... (%d of %d)",
       ^
    src/degree.c:91:4: warning: %d in format string (no. 3) requires 'int'
    but the argument type is 'signed long'. [invalidPrintfArgType_sint]
       printf("\r%s Selecting degrees... (%d of %d)",
       ^
This commit is contained in:
Glenn Y. Rolland 2020-02-14 08:29:36 +01:00
parent 8318eeee13
commit f24b8bd3a8

View file

@ -88,7 +88,7 @@ void degree_fill_from_random(Degree_t * degree, nodeindex_t edge_count){
nodeindex_t dst_node;
nodeindex_t deg;
printf("\r%s Selecting degrees... (%d of %d)",
printf("\r%s Selecting degrees... (%ld of %ld)",
progress_indicator(),
cur+1,
remaining);