diff options
Diffstat (limited to 'test/010_math_permtoindex')
| -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 | } |
