summaryrefslogtreecommitdiff
path: root/src/headers/unsigned-template
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2024-04-02 16:42:48 +0000
committerLaurent Bercot <ska@appnovation.com>2024-04-02 16:42:48 +0000
commit452a56a21670fd005208282f0479a1c4537325e3 (patch)
treed44cd73aab4ba895f8fc5a29222b6a8cc48d71d6 /src/headers/unsigned-template
parent81872f7e0a6cbbb6aa29704459af0bc965d9c4a2 (diff)
downloadskalibs-452a56a21670fd005208282f0479a1c4537325e3.tar.xz
Workaround for gcc 14 (and others!) incompatible-pointer-types stupidity
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/headers/unsigned-template')
-rw-r--r--src/headers/unsigned-template6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/headers/unsigned-template b/src/headers/unsigned-template
index d7496a0..0aad7da 100644
--- a/src/headers/unsigned-template
+++ b/src/headers/unsigned-template
@@ -29,9 +29,9 @@
#define @type@_fmtlist uint@BITS@_fmtlist
-#define @type@_scan_base uint@BITS@_scan_base
-#define @type@0_scan_base uint@BITS@0_scan_base
-#define @type@_scanlist uint@BITS@_scanlist
+#define @type@_scan_base(s, u, b) uint@BITS@_scan_base(s, (uint@BITS@_t *)u, b)
+#define @type@0_scan_base(s, u, b) uint@BITS@0_scan_base(s, (uint@BITS@_t *)u, b)
+#define @type@_scanlist(tab, max, s, num) uint@BITS@_scanlist((uint@BITS@_t *)tab, max, s, num)
#define @type@_scan(s, u) @type@_scan_base(s, (u), 10)
#define @type@0_scan(s, u) @type@0_scan_base(s, (u), 10)