From 4ddd0624cb3ae246ba8b4f7f39a0a0226e91fab8 Mon Sep 17 00:00:00 2001 From: Darryl Miles Date: Mon, 30 Sep 2024 06:41:36 +0100 Subject: [PATCH] gcr/gcrDebug.c: Wrong type of arguments to formatting function Fix code scanning alert no. 97: Wrong type of arguments to formatting function (#41) Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --- gcr/gcrDebug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcr/gcrDebug.c b/gcr/gcrDebug.c index 52fc698b..dfb02ece 100644 --- a/gcr/gcrDebug.c +++ b/gcr/gcrDebug.c @@ -107,7 +107,7 @@ GCRRouteFromFile(fname) (void) GCRroute(ch); times(&tbuf2); TxPrintf("Time : %5.2fu %5.2fs\n", (tbuf2.tms_utime - - tbuf1.tms_utime)/60.0, (tbuf2.tms_stime-tbuf1.tms_stime)*60); + tbuf1.tms_utime)/60.0, (double)(tbuf2.tms_stime-tbuf1.tms_stime)*60); gcrDumpResult(ch, GcrShowEnd); gcrShowMap(ch);