From ce3f1cc0ef9f46d70ab5387b1458e9098b40711d Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Sat, 22 Mar 2025 06:43:11 +0100 Subject: Some safety with move arrays, small refactor appendchar --- test/010_math_permtoindex/permtoindex_tests.c | 4 ++-- 1 file changed, 2 insertions(+), 2 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 98c8207..ff61945 100644 --- a/test/010_math_permtoindex/permtoindex_tests.c +++ b/test/010_math_permtoindex/permtoindex_tests.c @@ -1,6 +1,6 @@ #include "../test.h" -int64_t permtoindex(uint8_t *, int64_t); +int64_t permtoindex(size_t n, const uint8_t [n]); void run(void) { char str[STRLENMAX]; @@ -14,6 +14,6 @@ void run(void) { a[i] = atoi(str); } - p = permtoindex(a, n); + p = permtoindex(n, a); printf("%" PRId64 "\n", p); } -- cgit v1.3