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/012_math_permsign/permsign_tests.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/012_math_permsign/permsign_tests.c') diff --git a/test/012_math_permsign/permsign_tests.c b/test/012_math_permsign/permsign_tests.c index fa8ce9b..0ec22af 100644 --- a/test/012_math_permsign/permsign_tests.c +++ b/test/012_math_permsign/permsign_tests.c @@ -1,6 +1,6 @@ #include "../test.h" -int permsign(uint8_t *, int64_t); +int permsign(size_t n, const uint8_t [n]); void run(void) { char str[STRLENMAX]; @@ -16,6 +16,6 @@ void run(void) { a[i] = atoi(str); } - p = permsign(a, n); + p = permsign(n, a); printf("%d\n", p); } -- cgit v1.3