summaryrefslogtreecommitdiff
path: root/src/libstddjb/bitarray_not.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstddjb/bitarray_not.c')
-rw-r--r--src/libstddjb/bitarray_not.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstddjb/bitarray_not.c b/src/libstddjb/bitarray_not.c
index 06da25a..b3f614d 100644
--- a/src/libstddjb/bitarray_not.c
+++ b/src/libstddjb/bitarray_not.c
@@ -3,7 +3,7 @@
#include <sys/types.h>
#include <skalibs/bitarray.h>
-void bitarray_not (register unsigned char *s, register size_t a, register size_t b)
+void bitarray_not (unsigned char *s, size_t a, size_t b)
{
if (!b) return ;
b += a ;
@@ -11,7 +11,7 @@ void bitarray_not (register unsigned char *s, register size_t a, register size_t
s[a>>3] ^= ((1 << (a & 7)) - 1) ^ ((a << (b & 7)) - 1) ;
else
{
- register size_t i = (a>>3) + 1 ;
+ size_t i = (a>>3) + 1 ;
s[a>>3] ^= ~((1 << (a & 7)) - 1) ;
for (; i < (b>>3) ; i++) s[i] = ~s[i] ;
s[b>>3] ^= (1 << (b & 7)) - 1 ;