Changeset 305 in pacpusframework for branches/0.1.x/include/Pacpus/PacpusTools


Ignore:
Timestamp:
Apr 11, 2014, 1:34:51 PM (11 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.