From 8e9f3f98fc0cfac21685836e810227703f74771e Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Mon, 11 Aug 2003 21:58:44 +0000 Subject: [PATCH] get_bit_position returned a mix of byte position and bit position. --- src/common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common.h b/src/common.h index 3dbff2ecd..4eda9b0a1 100644 --- a/src/common.h +++ b/src/common.h @@ -217,7 +217,7 @@ public: } int get_bit_position() { - return byte_position - start_of_data + 8 - bits_valid; + return (byte_position - start_of_data) * 8 + 8 - bits_valid; } bool skip_bits(unsigned int num) {