Ensure _max is never less than _min

This commit is contained in:
Owen Stephens 2017-10-09 17:13:43 +01:00
parent 4036f3ff91
commit bb6b8378d3

View File

@ -87,7 +87,7 @@ abstract public class NumericBinIndex {
if (_min >= _max) {
_step = 1;
_min = Math.min(_min, _max);
_max = _step;
_max = _min+_step;
_bins = new int[1];
return;