mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-19 08:38:14 +01:00
Make error "foo" an expression.
This commit is contained in:
1 parent
9a8508857f
commit
7cefcccc98
7 files changed
+73
-16
No files matched your search
@@ -176,8 +176,7 @@ pri func decoder.decode_id?(dst writer1, src reader1)() {
|
||||
return error "internal error: inconsistent limited read"
|
||||
}
|
||||
block_size -= r.since_mark().length()
|
||||
// TODO: z.is_suspension() should be (z == suspension "short read").
|
||||
if (block_size == 0) and z.is_suspension() {
|
||||
if (block_size == 0) and (z == suspension "short read") {
|
||||
break
|
||||
}
|
||||
return z
|
||||
|
||||
Reference in new issue
Block a user