Ignore:
Timestamp:
04/11/14 13:34:51 (10 years ago)
Author:
phudelai
Message:

BinaryDecoder.h corrected

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/0.1.x/include/Pacpus/PacpusTools/BinaryDecoder.h

    r295 r305  
    776776                c = data[startBit>>3];                // >>3 <=> div 8
    777777        //c >>= (8-((startBit & 0x07)+1));      // &0x07 <=> modulo 8
    778                 c >>= startBit & 0x07 - (length - 1);    // &0x07 <=> modulo 8
     778                c >>= (startBit & 0x07) - (length - 1);    // &0x07 <=> modulo 8
    779779                *result = c & getMask8( length );
    780780
Note: See TracChangeset for help on using the changeset viewer.