tuffy / bitstream-io

Library for reading/writing un-aligned values from/to streams in big-endian and little-endian formats
Apache License 2.0
52 stars 20 forks source link

Properly shift the value accumulator for LE when pushing. #1

Closed tobz closed 7 years ago

tobz commented 7 years ago

This was causing a bug where the value was being shifted itself, and then pushed on top of the existing value, but only for LittleEndian; BigEndian was properly implemented.

tobz commented 7 years ago

@tuffy Thanks for merging this so fast! Any chance of pushing to crates.io?

tobz commented 7 years ago

Wups, sorry: just realized you already did this. :)

Thanks again!