aboutsummaryrefslogtreecommitdiff
path: root/test/010_math_permtoindex
diff options
context:
space:
mode:
Diffstat (limited to 'test/010_math_permtoindex')
-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 f246ef3..2a7ecf3 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
3uint64_t permtoindex(size_t n, const uint8_t [n]); 3uint64_t permtoindex(size_t n, const uint8_t *);
4 4
5void run(void) { 5void run(void) {
6 char str[STRLENMAX]; 6 char str[STRLENMAX];
@@ -11,7 +11,7 @@ void run(void) {
11 n = atoll(str); 11 n = atoll(str);
12 for (i = 0; i < n; i++) { 12 for (i = 0; i < n; i++) {
13 fgets(str, STRLENMAX, stdin); 13 fgets(str, STRLENMAX, stdin);
14 a[i] = atoi(str); 14 a[i] = (uint8_t)atoi(str);
15 } 15 }
16 16
17 p = permtoindex(n, a); 17 p = permtoindex(n, a);

Generated with cgit - Back to sebastiano.tronto.net