mzrouter/mzEstimate.c: (intmax_t) %lx Wrong type of arguments to formatting function
Copilot Autofix rejected: TxPrintf("\ntile %p\t\t (x: %d to %d, y: %d to %d)\n",
CodeQL: https://github.com/dlmiles/magic/security/code-scanning/102
This commit is contained in:
parent
7509802b3d
commit
62ebf49758
|
|
@ -91,6 +91,7 @@ static char rcsid[] __attribute__ ((unused)) = "$Header: /usr/cvsroot/magic-8.0/
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <stdint.h>
|
||||||
|
|
||||||
#include "utils/magic.h"
|
#include "utils/magic.h"
|
||||||
#include "utils/geometry.h"
|
#include "utils/geometry.h"
|
||||||
|
|
@ -1998,8 +1999,8 @@ mzDumpEstFunc(tile, fd)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
TxPrintf("\ntile %x\t\t (x: %d to %d, y: %d to %d)\n",
|
TxPrintf("\ntile %lx\t\t (x: %d to %d, y: %d to %d)\n",
|
||||||
(pointertype) tile, r.r_xbot, r.r_xtop, r.r_ybot, r.r_ytop);
|
(intmax_t) tile, r.r_xbot, r.r_xtop, r.r_ybot, r.r_ytop);
|
||||||
TxPrintf("\thcost = %d, ",
|
TxPrintf("\thcost = %d, ",
|
||||||
tilec->tc_hCost);
|
tilec->tc_hCost);
|
||||||
TxPrintf("vcost = %d \n",
|
TxPrintf("vcost = %d \n",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue