From f24b8bd3a8d5723e6f2ccc418a0e3ebd614d20d8 Mon Sep 17 00:00:00 2001 From: "Glenn Y. Rolland" Date: Fri, 14 Feb 2020 08:29:36 +0100 Subject: [PATCH] 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)", ^ --- src/degree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/degree.c b/src/degree.c index fadddc6..5d7b75a 100644 --- a/src/degree.c +++ b/src/degree.c @@ -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);