aboutsummaryrefslogtreecommitdiff
path: root/test/132_coorddata_dreo
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2026-04-06 14:48:54 +0100
committerSebastiano Tronto <sebastiano@tronto.net>2026-04-06 14:48:54 +0100
commita1ad0db8a6d829eddf1478cee44ae976bbcd325f (patch)
treea6e62232e05e7779034c5f9d1bf743b6f1c198e3 /test/132_coorddata_dreo
parent0d4fa9ebbfcadfff4baf8fc3cd32a63dcfd7dd43 (diff)
downloadnissy-core-a1ad0db8a6d829eddf1478cee44ae976bbcd325f.tar.gz
nissy-core-a1ad0db8a6d829eddf1478cee44ae976bbcd325f.zip
Fix integer conversions in code, tests and some toolsc-portability
Diffstat (limited to 'test/132_coorddata_dreo')
-rw-r--r--test/132_coorddata_dreo/coorddata_dreo.c6
1 files changed, 3 insertions, 3 deletions
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 *);
11 11
12void run(void) { 12void run(void) {
13 bool found; 13 bool found;
14 uint64_t t; 14 uint8_t t;
15 char str[STRLENMAX]; 15 char str[STRLENMAX];
16 unsigned char *data; 16 unsigned char *data;
17 size_t size; 17 size_t size;
@@ -33,8 +33,8 @@ void run(void) {
33 goto cleanup; 33 goto cleanup;
34 } 34 }
35 35
36 for (t = 0, found = false; t < 48; t++) { 36 for (t = 0, found = false, coord2 = UINT64_MAX; t < 48; t++) {
37 if (!((UINT64_C(1) << t) & TGROUP)) 37 if (!((UINT64_C(1) << (uint64_t)t) & TGROUP))
38 continue; 38 continue;
39 39
40 coord2 = coordinate_dreo_coord(transform(cube, t), data); 40 coord2 = coordinate_dreo_coord(transform(cube, t), data);

Generated with cgit - Back to sebastiano.tronto.net