On 2018-01-18 11:58, Liang Li wrote: > The .count of HBitmap is forgot to set in function > hbitmap_deserialize_finish, let's set it to the right value. > > Cc: Vladimir Sementsov-Ogievskiy <[email protected]> > Cc: Fam Zheng <[email protected]> > Cc: Max Reitz <[email protected]> > Cc: John Snow <[email protected]> > Signed-off-by: weiping zhang <[email protected]> > Signed-off-by: Liang Li <[email protected]> > --- > util/hbitmap.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/util/hbitmap.c b/util/hbitmap.c > index 289778a..58a2c93 100644 > --- a/util/hbitmap.c > +++ b/util/hbitmap.c > @@ -630,6 +630,7 @@ void hbitmap_deserialize_finish(HBitmap *bitmap) > } > > bitmap->levels[0][0] |= 1UL << (BITS_PER_LONG - 1); > + bitmap->count = hb_count_between(bitmap, 0, bitmap->size - 1); > } > > void hbitmap_free(HBitmap *hb)
Actually CC-ing John... (Looks good to me, though.) Max
signature.asc
Description: OpenPGP digital signature
