bitstring.h -- Correct errors in bit_nsearch.
authorVenkatesh Srinivas <me@endeavour.zapto.org>
Thu, 5 May 2011 08:28:59 +0000 (01:28 -0700)
committerVenkatesh Srinivas <me@endeavour.zapto.org>
Thu, 5 May 2011 08:28:59 +0000 (01:28 -0700)
commit9c75b925d72f796408c5cfbfe21e09360ed10b9a
treee9d05d51743ad79d2b0dfc38b987b69f6ee75ebe
parent1a63cab9bddc9a1a7922b988396bd33994915d05
bitstring.h -- Correct errors in bit_nsearch.

* bit_nsearch returned 0, not the correct -1, for a size 0 request.

* bit_nsearch returned 0, not the correct -1, for requests larger than the
  bitvector.

* bit_nsearch didn't find a zero cluster if it was the last one in a vector.

Submitted-by: Luis Useche <useche@gmail.com>
Closes bug: 2057
include/bitstring.h