From 384e59ea98b10dbd5b2c276c6cdbb52445081788 Mon Sep 17 00:00:00 2001 From: Darryl Miles Date: Mon, 30 Sep 2024 04:49:57 +0100 Subject: [PATCH] plow/PlowTest.c: Wrong type of arguments to formatting function Fix code scanning alert no. 104: Wrong type of arguments to formatting function (#29) Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --- plow/PlowTest.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plow/PlowTest.c b/plow/PlowTest.c index 04d19d39..ac59df2b 100644 --- a/plow/PlowTest.c +++ b/plow/PlowTest.c @@ -328,8 +328,8 @@ PlowTest(w, cmd) return; } TiToRect(tp, &area2); - TxPrintf("Splitting tile 0x%x at y=%d yielding 0x%x\n", - tp, editArea.r_ybot, plowSplitY(tp, editArea.r_ybot)); + TxPrintf("Splitting tile %p at y=%d yielding %p\n", + (void *)tp, editArea.r_ybot, (void *)plowSplitY(tp, editArea.r_ybot)); DBWAreaChanged(def, &area2, DBW_ALLWINDOWS, &DBAllButSpaceBits); break; case PC_MERGEDOWN: