From ea0387796a349c91032fbcb10f50c6ad8607b0f6 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Tue, 29 Jul 2025 12:12:43 +0200 Subject: All coordinates unsigned --- test/010_math_permtoindex/permtoindex_tests.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/010_math_permtoindex') 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 @@ #include "../test.h" -int64_t permtoindex(size_t n, const uint8_t [n]); +uint64_t permtoindex(size_t n, const uint8_t [n]); void run(void) { char str[STRLENMAX]; uint8_t a[100]; - int64_t n, i, p; + uint64_t n, i, p; fgets(str, STRLENMAX, stdin); n = atoll(str); @@ -15,5 +15,5 @@ void run(void) { } p = permtoindex(n, a); - printf("%" PRId64 "\n", p); + printf("%" PRIu64 "\n", p); } -- cgit v1.3