mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-19 08:38:14 +01:00
Remove a std/gif internal error code
This commit is contained in:
1 parent
333d195b52
commit
00f660af60
3 files changed
+18
-36
No files matched your search
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user