mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-19 08:38:14 +01:00
Allow explicit returns of built-in status codes.
This commit is contained in:
1 parent
2e883fcc23
commit
010c4db54f
7 files changed
+43
-12
No files matched your search
@@ -351,10 +351,7 @@ pri func decoder.decode_huffman?(dst writer1, src reader1)() {
|
||||
}
|
||||
length -= n
|
||||
// TODO: distinguish between short and limited writes?
|
||||
//
|
||||
// TODO: return suspension "short write" instead of this bogus
|
||||
// return error "bad Huffman code".
|
||||
return error "bad Huffman code"
|
||||
return suspension "short write"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user