Remove a std/gif internal error code

This commit is contained in:
Nigel Tao committed 2018-04-28 10:43:39 +10:00
1 parent 333d195b52
commit 00f660af60
3 files changed
+18 -36

No files matched your search

+1 -6
View File
@@ -19,8 +19,6 @@ pub error "bad GIF extension label"
pub error "bad GIF header"
pub error "bad LZW literal width"
pri error "internal error: inconsistent limited read"
pub struct decoder?(
width base.u32[..65535],
height base.u32[..65535],
@@ -325,10 +323,7 @@ pri func decoder.decode_id?(dst base.io_writer, src base.io_reader)() {
if z.is_ok() {
break
}
if block_size < in.src.since_mark().length() {
return error "internal error: inconsistent limited read"
}
block_size -= in.src.since_mark().length()
block_size ~sat-= in.src.since_mark().length()
if (block_size == 0) and (z == suspension "short read") {
break
}