X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvppinfra%2Fbitmap.h;h=99d65954d0977faa9ce3927073309ed8d4d2c9da;hb=0e2f188f7;hp=abb1405d3a2538908bdc7acf6c87fbac20c2fa9c;hpb=21922cec7339f48989f230248de36a98816c4b1b;p=vpp.git diff --git a/src/vppinfra/bitmap.h b/src/vppinfra/bitmap.h index abb1405d3a2..99d65954d09 100644 --- a/src/vppinfra/bitmap.h +++ b/src/vppinfra/bitmap.h @@ -245,7 +245,7 @@ clib_bitmap_get_multiple_no_check (uword * ai, uword i, uword n_bits) uword i0 = i / BITS (ai[0]); uword i1 = i % BITS (ai[0]); ASSERT (i1 + n_bits <= BITS (uword)); - return 0 != ((ai[i0] >> i1) & pow2_mask (n_bits)); + return ((ai[i0] >> i1) & pow2_mask (n_bits)); } /** Gets the ith through ith + n_bits bit values from a bitmap