Skip to content

Commit c95d302

Browse files
committed
Fix invalid return value for LzwInputStream
Not yet a proper part of library but its being used by people...
1 parent 81b9543 commit c95d302

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: src/Lzw/LzwInputStream.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,8 @@ public override int ReadByte() {
129129
public override int Read(byte[] buffer, int offset, int count) {
130130
if (!headerParsed) ParseHeader();
131131

132-
if (eof) return -1;
132+
if (eof) return 0;
133+
133134
int start = offset;
134135

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

0 commit comments

Comments
 (0)