aboutsummaryrefslogtreecommitdiff
path: root/test/079_invcoord_co
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2025-07-29 12:12:43 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2025-07-29 12:12:43 +0200
commitea0387796a349c91032fbcb10f50c6ad8607b0f6 (patch)
treeaed484690d24c0c28c7695d4b5389f2e3c341b96 /test/079_invcoord_co
parent52c21640508c3fc668107778ae027ff4428ebd89 (diff)
downloadnissy-core-ea0387796a349c91032fbcb10f50c6ad8607b0f6.tar.gz
nissy-core-ea0387796a349c91032fbcb10f50c6ad8607b0f6.zip
All coordinates unsigned
Diffstat (limited to 'test/079_invcoord_co')
-rw-r--r--test/079_invcoord_co/invcoord_co_tests.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/079_invcoord_co/invcoord_co_tests.c b/test/079_invcoord_co/invcoord_co_tests.c
index fcd68d0..dd5853e 100644
--- a/test/079_invcoord_co/invcoord_co_tests.c
+++ b/test/079_invcoord_co/invcoord_co_tests.c
@@ -2,12 +2,12 @@
2 2
3#define POW_3_7 2187 3#define POW_3_7 2187
4 4
5int64_t coord_co(cube_t); 5uint64_t coord_co(cube_t);
6cube_t invcoord_co(int64_t); 6cube_t invcoord_co(uint64_t);
7 7
8void run(void) { 8void run(void) {
9 oriented_cube_t cube; 9 oriented_cube_t cube;
10 int64_t coord, coord2; 10 uint64_t coord, coord2;
11 11
12 cube.orientation = 0; 12 cube.orientation = 0;
13 13
@@ -26,8 +26,8 @@ void run(void) {
26 26
27 coord2 = coord_co(cube.cube); 27 coord2 = coord_co(cube.cube);
28 if (coord != coord2) { 28 if (coord != coord2) {
29 printf("Error: invcoord of %" PRId64 29 printf("Error: invcoord of %" PRIu64
30 " returns %" PRId64 "\n", coord, coord2); 30 " returns %" PRIu64 "\n", coord, coord2);
31 return; 31 return;
32 } 32 }
33 } 33 }

Generated with cgit - Back to sebastiano.tronto.net