Changeset 342


Ignore:
Timestamp:
08/20/07 22:37:04 (17 years ago)
Author:
r2d
Message:

made changes so msvc doesn't complain, changes doesn't affects gcc speed here.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libmpc/trunk/libmpcdec/mpc_bits_reader.h

    r338 r342  
    6767{
    6868        mpc_uint16_t code;
    69         code = ((r->buff[0] << 16) | (r->buff[1] << 8) | r->buff[2]) >> r->count;
     69        code = (mpc_uint16_t)((((r->buff[0] << 16) | (r->buff[1] << 8) | r->buff[2]) >> r->count) & 0xFFFF);
    7070
    7171        while (code < Table->Code) Table++;
     
    8282        mpc_huff_lut tmp;
    8383        const mpc_huffman * Table;
    84         code = ((r->buff[0] << 16) | (r->buff[1] << 8) | r->buff[2]) >> r->count;
     84        code = (mpc_uint16_t)((((r->buff[0] << 16) | (r->buff[1] << 8) | r->buff[2]) >> r->count) & 0xFFFF);
    8585
    8686        tmp = can->lut[code >> (16 - LUT_DEPTH)];
     
    107107        mpc_huff_lut tmp;
    108108        const mpc_huffman * Table;
    109         code = (mpc_uint16_t)(((r->buff[0] << 16) | (r->buff[1] << 8) | r->buff[2]) >> r->count);
     109        code = (mpc_uint16_t)((((r->buff[0] << 16) | (r->buff[1] << 8) | r->buff[2]) >> r->count) & 0xFFFF);
    110110
    111111        tmp = lut->lut[code >> (16 - LUT_DEPTH)];
Note: See TracChangeset for help on using the changeset viewer.