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]){