line 245 change from incorrect numeric comparison of maxv and minv to correct use of compareTo

missed in earlier commit f1ef194c4808a09b843d16d37614dff30c9a7e55

fixes #486