summaryrefslogtreecommitdiff
path: root/src/htscharset.c
diff options
context:
space:
mode:
authorXavier Roche <xroche@users.noreply.github.com>2014-04-27 16:59:05 +0000
committerXavier Roche <xroche@users.noreply.github.com>2014-04-27 16:59:05 +0000
commit908f3ac832490c06211e4d2b5bdfa4f2ed02ed79 (patch)
tree3f9fb70ec614de6494b84ec5901b5b32b9ed08ad /src/htscharset.c
parentd46e835fc231a9911963fcc9b465fc3d99f18397 (diff)
Better be unsigned int.
Diffstat (limited to 'src/htscharset.c')
-rw-r--r--src/htscharset.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/htscharset.c b/src/htscharset.c
index 5f6fd16..b2cf164 100644
--- a/src/htscharset.c
+++ b/src/htscharset.c
@@ -726,9 +726,9 @@ static unsigned int nlz8(unsigned char x) {
*/
#define ADD_SEQ(UC, BITS, EMITTER) do { \
/* number of data bits in first octet */ \
- const int bits = BITS % 6; \
+ const unsigned int bits = BITS % 6; \
/* shift for first octet */ \
- const int shift0 = BITS - bits; \
+ const unsigned int shift0 = BITS - bits; \
/* first octet */ \
const unsigned char lead = \
/* leading bits */ \