From 576782a870a22e61a4b2542c1e20384fb4693557 Mon Sep 17 00:00:00 2001 From: celso Date: Mon, 9 Jan 2023 19:56:42 -0300 Subject: [PATCH] fixed typos in functions --- src/skomb.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/skomb.h b/src/skomb.h index f47243c..46e0a7e 100644 --- a/src/skomb.h +++ b/src/skomb.h @@ -144,7 +144,7 @@ int skomb4(int number, int *not_allowed, int *not_allowed_len, quartet *quartets int i, j, k; int skip, len; k = 0; - trio *trios = malloc(sizeof(pair) * 8); + trio *trios = malloc(sizeof(trio) * 8); for (i = 1; i < 10; i++){ for (j = 0; j < *not_allowed_len; j++){ if (i == not_allowed[j]){ @@ -183,7 +183,7 @@ int skomb5(int number, int *not_allowed, int* not_allowed_len, quintet *quintets int i, j, k; int skip, len; k = 0; - quartet *quartets = malloc(sizeof(pair) * 12); + quartet *quartets = malloc(sizeof(quartet) * 12); for (i = 1; i < 10; i++){ for (j = 0; j < *not_allowed_len; j++){ if (i == not_allowed[j]){