Allow empty-but-suspendible methods

This commit is contained in:
Nigel Tao committed 2018-03-28 10:24:40 +11:00
1 parent 9cc6964c30
commit f7dfe8c4c2
5 files changed
+20

No files matched your search

+1
View File
@@ -1032,6 +1032,7 @@ wuffs_gzip__status wuffs_gzip__decoder__decode(wuffs_gzip__decoder* self,
suspend:
self->private_impl.c_decode[0].coro_susp_point = coro_susp_point;
goto exit;
exit:
if (a_src.buf) {
size_t n = b_rptr_src - (a_src.buf->ptr + a_src.buf->ri);