diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2025-07-29 12:12:43 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2025-07-29 12:12:43 +0200 |
| commit | ea0387796a349c91032fbcb10f50c6ad8607b0f6 (patch) | |
| tree | aed484690d24c0c28c7695d4b5389f2e3c341b96 /test/081_invcoord_epud | |
| parent | 52c21640508c3fc668107778ae027ff4428ebd89 (diff) | |
| download | nissy-core-ea0387796a349c91032fbcb10f50c6ad8607b0f6.tar.gz nissy-core-ea0387796a349c91032fbcb10f50c6ad8607b0f6.zip | |
All coordinates unsigned
Diffstat (limited to 'test/081_invcoord_epud')
| -rw-r--r-- | test/081_invcoord_epud/invcoord_epud_tests.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/081_invcoord_epud/invcoord_epud_tests.c b/test/081_invcoord_epud/invcoord_epud_tests.c index bf444cc..6d7672b 100644 --- a/test/081_invcoord_epud/invcoord_epud_tests.c +++ b/test/081_invcoord_epud/invcoord_epud_tests.c | |||
| @@ -2,12 +2,12 @@ | |||
| 2 | 2 | ||
| 3 | #define FACT_8 40320 | 3 | #define FACT_8 40320 |
| 4 | 4 | ||
| 5 | int64_t coord_epud(cube_t); | 5 | uint64_t coord_epud(cube_t); |
| 6 | cube_t invcoord_epud(int64_t); | 6 | cube_t invcoord_epud(uint64_t); |
| 7 | 7 | ||
| 8 | void run(void) { | 8 | void 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 | ||
| @@ -22,8 +22,8 @@ void run(void) { | |||
| 22 | 22 | ||
| 23 | coord2 = coord_epud(cube.cube); | 23 | coord2 = coord_epud(cube.cube); |
| 24 | if (coord != coord2) { | 24 | if (coord != coord2) { |
| 25 | printf("Error: invcoord of %" PRId64 | 25 | printf("Error: invcoord of %" PRIu64 |
| 26 | " returns %" PRId64 "\n", coord, coord2); | 26 | " returns %" PRIu64 "\n", coord, coord2); |
| 27 | return; | 27 | return; |
| 28 | } | 28 | } |
| 29 | } | 29 | } |
