summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--epan/tvbuff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/tvbuff.c b/epan/tvbuff.c
index f1003dcb5e..29ab888fa0 100644
--- a/epan/tvbuff.c
+++ b/epan/tvbuff.c
@@ -1712,7 +1712,7 @@ tvb_get_bits32(tvbuff_t *tvb, gint bit_offset, const gint no_of_bits, const gboo
}
else
{
- tempval = tempval >> (8 - shift);
+ tempval = tempval >> (- shift);
}
value = value | tempval;
}