vppinfra: use count_trailing_zeros in sparse_vec_index
[vpp.git] / src / vppinfra / bitmap.h
index 9e1ae49..dbf9eeb 100644 (file)
@@ -409,7 +409,7 @@ clib_bitmap_last_set (uword * ai)
       if (x != 0)
        {
          uword first_bit;
-         count_leading_zeros (first_bit, x);
+         first_bit = count_leading_zeros (x);
          return (i) * BITS (ai[0]) - first_bit - 1;
        }
     }