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

Fix calculation of max integer value #6

Closed Ashymad closed 4 years ago

Ashymad commented 4 years ago

This fixes #3 as explained in comment and adds more meaningful error message. Also fixes warning about overlapping matches. Before merging let me add tests for this case EDIT: tests added

Ashymad commented 4 years ago

See you fixed this in 5c5dd5a35e32a01e185b999099f2f413275f4d38. Seems much nicer than this bit spaghetti :)