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/132_coorddata_dreo/coorddata_dreo.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/132_coorddata_dreo') diff --git a/test/132_coorddata_dreo/coorddata_dreo.c b/test/132_coorddata_dreo/coorddata_dreo.c index 2b99b7f..50294ff 100644 --- a/test/132_coorddata_dreo/coorddata_dreo.c +++ b/test/132_coorddata_dreo/coorddata_dreo.c @@ -11,7 +11,7 @@ size_t coordinate_dreo_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) << (uint64_t)t) & TGROUP)) continue; coord2 = coordinate_dreo_coord(transform(cube, t), data); -- cgit v1.3