aboutsummaryrefslogtreecommitdiff
path: root/test/133_coordata_drfinnoe
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/133_coordata_drfinnoe
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/133_coordata_drfinnoe')
-rw-r--r--test/133_coordata_drfinnoe/coorddata_drfinnoe.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/133_coordata_drfinnoe/coorddata_drfinnoe.c b/test/133_coordata_drfinnoe/coorddata_drfinnoe.c
index 11ae9f7..7d19361 100644
--- a/test/133_coordata_drfinnoe/coorddata_drfinnoe.c
+++ b/test/133_coordata_drfinnoe/coorddata_drfinnoe.c
@@ -10,7 +10,7 @@ size_t coordinate_drfinnoe_gendata(unsigned char *);
10 10
11void run(void) { 11void run(void) {
12 bool found; 12 bool found;
13 uint64_t t; 13 uint8_t t;
14 char str[STRLENMAX]; 14 char str[STRLENMAX];
15 unsigned char *data; 15 unsigned char *data;
16 size_t size; 16 size_t size;
@@ -32,8 +32,8 @@ void run(void) {
32 goto cleanup; 32 goto cleanup;
33 } 33 }
34 34
35 for (t = 0, found = false; t < 48; t++) { 35 for (t = 0, found = false, coord2 = UINT64_MAX; t < 48; t++) {
36 if (!((UINT64_C(1) << t) & TGROUP)) 36 if (!((UINT64_C(1) << (uint64_t)t) & TGROUP))
37 continue; 37 continue;
38 38
39 coord2 = coordinate_drfinnoe_coord(transform(cube, t), data); 39 coord2 = coordinate_drfinnoe_coord(transform(cube, t), data);

Generated with cgit - Back to sebastiano.tronto.net