From a1ad0db8a6d829eddf1478cee44ae976bbcd325f Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Mon, 6 Apr 2026 14:48:54 +0100 Subject: Fix integer conversions in code, tests and some tools --- test/131_coorddata_dr/coorddata_dr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/131_coorddata_dr') diff --git a/test/131_coorddata_dr/coorddata_dr.c b/test/131_coorddata_dr/coorddata_dr.c index d8ac94a..d262fe3 100644 --- a/test/131_coorddata_dr/coorddata_dr.c +++ b/test/131_coorddata_dr/coorddata_dr.c @@ -11,7 +11,7 @@ size_t coordinate_dr_gendata(unsigned char *); void run(void) { bool found; - uint64_t t; + uint8_t t; char str[STRLENMAX]; unsigned char *data; size_t size; @@ -33,8 +33,8 @@ void run(void) { goto cleanup; } - for (t = 0, found = false; t < 48; t++) { - if (!((UINT64_C(1) << t) & TGROUP)) + for (t = 0, found = false, coord2 = UINT64_MAX; t < 48; t++) { + if (!((UINT64_C(1) << (uint8_t)t) & TGROUP)) continue; coord2 = coordinate_dr_coord(transform(cube, t), data); -- cgit v1.3