# HG changeset patch # User mas01mc # Date 1217605510 0 # Node ID b10ad7b6427fe4ad99e3ffdc46b97e349d934df5 # Parent 3bb4d850557b03e217fdc8311600e70cd826351f fixed recently-introduced strict point ordering bug when LSH index is initially empty diff -r 3bb4d850557b -r b10ad7b6427f lshlib.cpp --- a/lshlib.cpp Fri Aug 01 15:33:00 2008 +0000 +++ b/lshlib.cpp Fri Aug 01 15:45:10 2008 +0000 @@ -446,7 +446,7 @@ Uns32T G::insert_point(vector& v, Uns32T pp){ Uns32T collisionCount = 0; H::p = pp; - if(pp<=H::maxp) + if(H::maxp && pp<=H::maxp) error("points must be indexed in strict ascending order", "LSH::insert_point(vector&, Uns32T pointID)"); H::maxp=pp; // Store highest pointID in database H::compute_hash_functions( v );