haskell-streaming / streaming-bytestring

effectful sequences of bytes; an alternative no-lazy-io implementation of Data.ByteString.Lazy
BSD 3-Clause "New" or "Revised" License
16 stars 11 forks source link

Bugfix, readInt fails to detect x-chunk overflow #43

Closed vdukhovni closed 3 years ago

vdukhovni commented 3 years ago

When the digit that causes overflow is the first digit of the next chunk, readInt was failing to detect overflow and behaved as though no new digit was found, returning the number accumulated so far.

This is now fixed, and a regression test added.