]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
regress: fix assertion in robust regression
authorMiroslav Lichvar <mlichvar@redhat.com>
Tue, 27 Jun 2017 11:26:39 +0000 (13:26 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Tue, 27 Jun 2017 13:29:01 +0000 (15:29 +0200)
regress.c

index ea8cbecc5489f38513219f91bb8c7c7b4ea7b557..e46a40dddb2c73f5757bb169f88142a8e12d9709 100644 (file)
--- 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;