summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/libchmfile/bitfiddle.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/lib/libchmfile/bitfiddle.h b/lib/libchmfile/bitfiddle.h
index 14a4bdc..cd97b8e 100644
--- a/lib/libchmfile/bitfiddle.h
+++ b/lib/libchmfile/bitfiddle.h
@@ -84,7 +84,7 @@ inline u_int64_t sr_int(unsigned char* byte, int* bit,
unsigned char s, unsigned char r, size_t& length)
{
u_int64_t ret;
- unsigned char tqmask;
+ unsigned char mask;
int n, n_bits, num_bits, base, count;
length = 0;
size_t fflen;
@@ -105,37 +105,37 @@ inline u_int64_t sr_int(unsigned char* byte, int* bit,
switch(num_bits){
case 0:
- tqmask = 1;
+ mask = 1;
break;
case 1:
- tqmask = 3;
+ mask = 3;
break;
case 2:
- tqmask = 7;
+ mask = 7;
break;
case 3:
- tqmask = 0xf;
+ mask = 0xf;
break;
case 4:
- tqmask = 0x1f;
+ mask = 0x1f;
break;
case 5:
- tqmask = 0x3f;
+ mask = 0x3f;
break;
case 6:
- tqmask = 0x7f;
+ mask = 0x7f;
break;
case 7:
- tqmask = 0xff;
+ mask = 0xff;
break;
default:
- tqmask = 0xff;
+ mask = 0xff;
break;
}
- tqmask <<= base;
+ mask <<= base;
ret = (ret << (num_bits+1)) |
- (u_int64_t)((*byte & tqmask) >> base);
+ (u_int64_t)((*byte & mask) >> base);
if( n > *bit ){
++byte;