git: bitstring.h -- Correct errors in bit_nsearch.
Venkatesh Srinivas
vsrinivas at crater.dragonflybsd.org
Thu May 5 01:32:02 PDT 2011
commit 9c75b925d72f796408c5cfbfe21e09360ed10b9a
Author: Venkatesh Srinivas <me at endeavour.zapto.org>
Date: Thu May 5 01:28:59 2011 -0700
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 at gmail.com>
Closes bug: 2057
Summary of changes:
include/bitstring.h | 22 ++++++++--------------
1 files changed, 8 insertions(+), 14 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/9c75b925d72f796408c5cfbfe21e09360ed10b9a
--
DragonFly BSD source repository
More information about the Commits
mailing list