Fix signed bit operations in MSG_ReadBits

This commit is contained in:
Dominic Fandrey authored and Zack Middleton committed 2018-04-08 21:41:31 -05:00
1 parent 62cec249d7
commit 3a702ded65
1 file changed
+1 -1
+1 -1
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;