From: Miroslav Lichvar Date: Tue, 27 Jun 2017 11:26:39 +0000 (+0200) Subject: regress: fix assertion in robust regression X-Git-Tag: 3.2-pre1~44 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=85c84073c152a502a75d16654e65ec22b0ded7eb;p=thirdparty%2Fchrony.git regress: fix assertion in robust regression --- diff --git a/regress.c b/regress.c index ea8cbecc..e46a40dd 100644 --- a/regress.c +++ b/regress.c @@ -509,7 +509,7 @@ RGR_FindBestRobustRegression double mx, dx, my, dy; int nruns = 0; - assert(n < MAX_POINTS); + assert(n <= MAX_POINTS); if (n < 2) { return 0;