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/010_math_permtoindex/permtoindex_tests.c | |
| parent | 52c21640508c3fc668107778ae027ff4428ebd89 (diff) | |
| download | nissy-core-ea0387796a349c91032fbcb10f50c6ad8607b0f6.tar.gz nissy-core-ea0387796a349c91032fbcb10f50c6ad8607b0f6.zip | |
All coordinates unsigned
Diffstat (limited to 'test/010_math_permtoindex/permtoindex_tests.c')
| -rw-r--r-- | test/010_math_permtoindex/permtoindex_tests.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/010_math_permtoindex/permtoindex_tests.c b/test/010_math_permtoindex/permtoindex_tests.c index ff61945..f246ef3 100644 --- a/test/010_math_permtoindex/permtoindex_tests.c +++ b/test/010_math_permtoindex/permtoindex_tests.c | |||
| @@ -1,11 +1,11 @@ | |||
| 1 | #include "../test.h" | 1 | #include "../test.h" |
| 2 | 2 | ||
| 3 | int64_t permtoindex(size_t n, const uint8_t [n]); | 3 | uint64_t permtoindex(size_t n, const uint8_t [n]); |
| 4 | 4 | ||
| 5 | void run(void) { | 5 | void run(void) { |
| 6 | char str[STRLENMAX]; | 6 | char str[STRLENMAX]; |
| 7 | uint8_t a[100]; | 7 | uint8_t a[100]; |
| 8 | int64_t n, i, p; | 8 | uint64_t n, i, p; |
| 9 | 9 | ||
| 10 | fgets(str, STRLENMAX, stdin); | 10 | fgets(str, STRLENMAX, stdin); |
| 11 | n = atoll(str); | 11 | n = atoll(str); |
| @@ -15,5 +15,5 @@ void run(void) { | |||
| 15 | } | 15 | } |
| 16 | 16 | ||
| 17 | p = permtoindex(n, a); | 17 | p = permtoindex(n, a); |
| 18 | printf("%" PRId64 "\n", p); | 18 | printf("%" PRIu64 "\n", p); |
| 19 | } | 19 | } |
