From: Miroslav Lichvar Date: Fri, 6 Aug 2010 12:51:37 +0000 (+0200) Subject: Change length of resid buffer to MAX_POINTS X-Git-Tag: 1.25-pre1~71 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3b4e4b785d63f2da14ae9f4881193e06df2253b3;p=thirdparty%2Fchrony.git Change length of resid buffer to MAX_POINTS --- diff --git a/regress.c b/regress.c index c870a195..238fa317 100644 --- a/regress.c +++ b/regress.c @@ -218,7 +218,6 @@ n_runs_from_residuals(double *resid, int n) /* Return a boolean indicating whether we had enough points for regression */ -#define RESID_SIZE 1024 #define MIN_SAMPLES_FOR_REGRESS 3 int @@ -252,7 +251,7 @@ RGR_FindBestRegression ) { double P, Q, U, V, W; /* total */ - double resid[RESID_SIZE]; + double resid[MAX_POINTS]; double ss; double a, b, u, ui, aa;