From: Vincent Pit Date: Sat, 23 Apr 2011 14:29:39 +0000 (+0200) Subject: Silence a constness warning in bv_zero() X-Git-Tag: v0.07~17 X-Git-Url: http://git.vpit.fr/?a=commitdiff_plain;h=7534095ac7f4df7767444efaea60afc7f3f70360;p=perl%2Fmodules%2FScalar-Vec-Util.git Silence a constness warning in bv_zero() --- diff --git a/bitvect.h b/bitvect.h index 51a7d78..870d65b 100644 --- a/bitvect.h +++ b/bitvect.h @@ -339,7 +339,8 @@ INLINE_DECLARE(int bv_zero(const void *bv_, size_t s, size_t l)) #ifdef INLINE_DEFINE { size_t o; - T mask, *bv = (T *) bv_, *end; + T mask; + const T *bv = (const T *) bv_, *end; bv += s / BITS(T); o = s % BITS(T);