summarylogtreecommitdiffstats
path: root/0001-kk-Fix-debug-printf-specifier.patch
blob: 6098e7c26c06e2123097a0f9a5098f50e77f518d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: "Jan Alexander Steffens (heftig)" <heftig@archlinux.org>
Date: Thu, 26 Feb 2026 00:17:53 +0100
Subject: [PATCH] kk: Fix debug printf specifier

On i686-pc-linux-gnu, `offset` is larger than a long.
---
 src/kosmickrisp/kosmicomp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/kosmickrisp/kosmicomp.c b/src/kosmickrisp/kosmicomp.c
index 501ba4e00959..a23aaff8dd72 100644
--- a/src/kosmickrisp/kosmicomp.c
+++ b/src/kosmickrisp/kosmicomp.c
@@ -45,7 +45,7 @@ static void
 debug_callback(void *priv, enum nir_spirv_debug_level debuglevel, size_t offset,
                const char *message)
 {
-   fprintf(stderr, "<%d> at %ld %s\n", debuglevel, offset, message);
+   fprintf(stderr, "<%d> at %zu %s\n", debuglevel, offset, message);
 }
 
 static int