X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FScalar-Vec-Util.git;a=blobdiff_plain;f=bitvect.h;h=207279f39afcf375074af5010042e37506be8f75;hp=51a7d7893aea84f8bcbc42f58b5074749d3b3861;hb=HEAD;hpb=38cecdc8ec7ee71576580fa90ab61a9285fc5dff diff --git a/bitvect.h b/bitvect.h index 51a7d78..207279f 100644 --- a/bitvect.h +++ b/bitvect.h @@ -5,7 +5,7 @@ /* ... Generic macros ...................................................... */ -#define INLINE_DECLARE(P) STATIC P +#define INLINE_DECLARE(P) static P #define INLINE_DEFINE #ifndef BV_UNIT @@ -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);