Handle decoding a GIF in many short reads.

This commit is contained in:
Nigel Tao committed 2017-07-16 19:25:49 +10:00
1 parent a0c772f617
commit bd6d2ea3a1
3 files changed
+74 -29

No files matched your search

+2 -2
View File
@@ -962,8 +962,8 @@ func (g *gen) writeCallSuspendibles(n *a.Expr, depth uint32) error {
if err := g.writeLoadExprDerivedVars(n); err != nil {
return err
}
// TODO: be principled with "if (status < 0)" vs "if (status)".
g.writes("if (status < 0) { return status; }\n")
// TODO: be principled with "if (l_lzw_src && etc)".
g.writes("if (l_lzw_src && status) { goto suspend; }\n")
} else {
// TODO: fix this.