]> git.vpit.fr Git - perl/modules/Scalar-Vec-Util.git/commitdiff
Silence a signedness conversion warning in bv_fill()
authorVincent Pit <vince@profvince.com>
Tue, 25 Aug 2009 23:06:09 +0000 (01:06 +0200)
committerVincent Pit <vince@profvince.com>
Tue, 25 Aug 2009 23:06:09 +0000 (01:06 +0200)
bitvect.h

index a62f472af79666e31bd8aa4c3b1e228b6b37642d..b50c1a10407323cd5de02b6cfadeb9f5578045f7 100644 (file)
--- a/bitvect.h
+++ b/bitvect.h
@@ -501,7 +501,7 @@ INLINE_DECLARE(void bv_fill(void *bv_, size_t s, size_t l, unsigned int f))
  T mask, *bv = (T *) bv_;
 
  if (f)
  T mask, *bv = (T *) bv_;
 
  if (f)
-  f = ~0;
+  f = ~0u;
 
  bv += s / BITS(T);
  o   = s % BITS(T);
 
  bv += s / BITS(T);
  o   = s % BITS(T);