We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 81b9543 commit c95d302Copy full SHA for c95d302
1 file changed
src/Lzw/LzwInputStream.cs
@@ -129,7 +129,8 @@ public override int ReadByte() {
129
public override int Read(byte[] buffer, int offset, int count) {
130
if (!headerParsed) ParseHeader();
131
132
- if (eof) return -1;
+ if (eof) return 0;
133
+
134
int start = offset;
135
136
/* Using local copies of various variables speeds things up by as
0 commit comments