Make error "foo" an expression.

This commit is contained in:
Nigel Tao committed 2017-10-27 13:00:13 +11:00
1 parent 9a8508857f
commit 7cefcccc98
7 files changed
+73 -16

No files matched your search

+1 -2
View File
@@ -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