openxc / bitfield-c

Bit array parsing and encoding utility library in C
BSD 3-Clause "New" or "Revised" License
92 stars 51 forks source link

fix issue about bitmask and copy_bits #5

Closed duanjj0929 closed 5 years ago

airbagi commented 5 years ago

source++ gives unexpected results in copy_bits when source is less then 2 bytes!