Generate C code for if-else-if.

Also remove redundant parentheses in "if ((x bin_op y))", to avoid
triggering a clang -Wparentheses-equality warning.
This commit is contained in:
Nigel Tao committed 2017-06-08 16:22:07 +10:00
1 parent a81752647c
commit 2d0f9d7669
4 files changed
+43 -18

No files matched your search

+2
View File
@@ -32,6 +32,8 @@ pub func lzw_decoder.decode?(dst ptr buf1, src ptr buf1, src_final bool)() {
if code < clear_code {
break
} else if code == clear_code {
continue
}
// TODO: implement.