skalibs

Mirror/fork of https://skarnet.org/software/skalibs/
git clone https://ccx.te2000.cz/git/skalibs
Log | Files | Refs | README | LICENSE

commit 452a56a21670fd005208282f0479a1c4537325e3
parent 81872f7e0a6cbbb6aa29704459af0bc965d9c4a2
Author: Laurent Bercot <ska-skaware@skarnet.org>
Date:   Tue,  2 Apr 2024 16:42:48 +0000

 Workaround for gcc 14 (and others!) incompatible-pointer-types stupidity

Signed-off-by: Laurent Bercot <ska@appnovation.com>

Diffstat:
Msrc/headers/signed-template | 6+++---
Msrc/headers/unsigned-template | 6+++---
2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/headers/signed-template b/src/headers/signed-template @@ -7,8 +7,8 @@ #define @TYPE@_FMT (1+UINT@BITS@_FMT) #define @type@_fmt int@BITS@_fmt #define @type@_fmtlist int@BITS@_fmtlist -#define @type@_scan int@BITS@_scan -#define @type@0_scan int@BITS@0_scan -#define @type@_scanlist int@BITS@_scanlist +#define @type@_scan(s, d, b) int@BITS@_scan(s, (int@BITS@_t *)d, b) +#define @type@0_scan(s, d, b) int@BITS@0_scan(s, (int@BITS@_t *)d, b) +#define @type@_scanlist(tab, max, s, num) int@BITS@_scanlist((int@BITS@_t *)tab, max, s, num) diff --git 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)