aboutsummaryrefslogtreecommitdiff
path: root/test/010_math_permtoindex/permtoindex_tests.c
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2025-03-22 06:43:11 +0100
committerSebastiano Tronto <sebastiano@tronto.net>2025-03-22 18:45:47 +0100
commitce3f1cc0ef9f46d70ab5387b1458e9098b40711d (patch)
tree4949745670b829f2211381bf14b8440dcc6ca7b1 /test/010_math_permtoindex/permtoindex_tests.c
parent0550a16c1cce868bbc3f3b5ad59f80e35cf2a6cd (diff)
downloadnissy-core-ce3f1cc0ef9f46d70ab5387b1458e9098b40711d.tar.gz
nissy-core-ce3f1cc0ef9f46d70ab5387b1458e9098b40711d.zip
Some safety with move arrays, small refactor appendchar
Diffstat (limited to 'test/010_math_permtoindex/permtoindex_tests.c')
-rw-r--r--test/010_math_permtoindex/permtoindex_tests.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/010_math_permtoindex/permtoindex_tests.c b/test/010_math_permtoindex/permtoindex_tests.c
index 98c8207..ff61945 100644
--- a/test/010_math_permtoindex/permtoindex_tests.c
+++ b/test/010_math_permtoindex/permtoindex_tests.c
@@ -1,6 +1,6 @@
1#include "../test.h" 1#include "../test.h"
2 2
3int64_t permtoindex(uint8_t *, int64_t); 3int64_t permtoindex(size_t n, const uint8_t [n]);
4 4
5void run(void) { 5void run(void) {
6 char str[STRLENMAX]; 6 char str[STRLENMAX];
@@ -14,6 +14,6 @@ void run(void) {
14 a[i] = atoi(str); 14 a[i] = atoi(str);
15 } 15 }
16 16
17 p = permtoindex(a, n); 17 p = permtoindex(n, a);
18 printf("%" PRId64 "\n", p); 18 printf("%" PRId64 "\n", p);
19} 19}

Generated with cgit - Back to sebastiano.tronto.net