diff --git a/src/master.c b/src/master.c index daeec2e..9954bb1 100644 --- a/src/master.c +++ b/src/master.c @@ -48,7 +48,7 @@ int perfect_rolls() { int nb_coeffs = 4; double y1, y2, y3, y4; - int a[4] = {0}; + int a[5] = {0}; glp_smcp params = {0}; glp_init_smcp(¶ms); params.msg_lev = GLP_MSG_OFF; diff --git a/src/sub.c b/src/sub.c index ce1bd2e..8a50db8 100644 --- a/src/sub.c +++ b/src/sub.c @@ -15,7 +15,7 @@ static void add_column_sp(glp_prob *lp, int *num_col_sp) { } -void column_generator(int y1, int y2, int y3, int y4, int a[static 4]) { +void column_generator(int y1, int y2, int y3, int y4, int a[static 5]) { glp_prob *sous_prob; int ia[1 + 1000]; int ja[1 + 1000]; diff --git a/src/sub.h b/src/sub.h index bf2d669..7f17ded 100644 --- a/src/sub.h +++ b/src/sub.h @@ -2,7 +2,7 @@ #define SUB_H -void column_generator(int y1, int y2, int y3, int y4, int a[static 4]); +void column_generator(int y1, int y2, int y3, int y4, int a[static 5]); #endif