regress: fix assertion in robust regression
This commit is contained in:
parent
c2944d8727
commit
85c84073c1
1 changed files with 1 additions and 1 deletions
|
@ -509,7 +509,7 @@ RGR_FindBestRobustRegression
|
||||||
double mx, dx, my, dy;
|
double mx, dx, my, dy;
|
||||||
int nruns = 0;
|
int nruns = 0;
|
||||||
|
|
||||||
assert(n < MAX_POINTS);
|
assert(n <= MAX_POINTS);
|
||||||
|
|
||||||
if (n < 2) {
|
if (n < 2) {
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue