From Vincent Helfre:

Bug in tvb_get_bits32(), The last bitshift is too large, which causes the least significant bits to be 0 all the time.

svn path=/trunk/; revision=35015
This commit is contained in:
Anders Broman 2010-11-23 17:33:57 +00:00
parent cce1bef672
commit ab16d07fd3
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}