Fix signed bit operations in MSG_ReadBits

This commit is contained in:
Dominic Fandrey 2016-11-26 14:48:20 +01:00 committed by Zack Middleton
parent 62cec249d7
commit 3a702ded65

View file

@ -239,7 +239,7 @@ int MSG_ReadBits( msg_t *msg, int bits ) {
for(i=0;i<bits;i+=8) {
Huff_offsetReceive (msgHuff.decompressor.tree, &get, msg->data, &msg->bit, msg->cursize<<3);
// fwrite(&get, 1, 1, fp);
value |= (get<<(i+nbits));
value = (unsigned int)value | ((unsigned int)get<<(i+nbits));
if (msg->bit > msg->cursize<<3) {
msg->readcount = msg->cursize + 1;