Skip to content

Commit

Permalink
Fix invalid return value for LzwInputStream
Browse files Browse the repository at this point in the history
Not yet a proper part of library but its being used by people...
  • Loading branch information
jfreilly committed Jan 10, 2015
1 parent 81b9543 commit c95d302
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Lzw/LzwInputStream.cs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ public override int ReadByte() {
public override int Read(byte[] buffer, int offset, int count) {
if (!headerParsed) ParseHeader();

if (eof) return -1;
if (eof) return 0;

int start = offset;

/* Using local copies of various variables speeds things up by as
Expand Down

1 comment on commit c95d302

@RobThree
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Finally! 👍
This means you can close pull request #10 (although I wonder why you just didn't use the PR in the first place...)

Please sign in to comment.