Fix C goto generation for while without continue.

This commit is contained in:
Nigel Tao committed 2017-06-10 14:58:47 +10:00
1 parent 98a07921b1
commit 8e279c51bf
3 files changed
+9 -3

No files matched your search

+3 -1
View File
@@ -269,13 +269,15 @@ label_0_continue:;
goto cleanup0;
} else if (v_code <= v_save_code) {
v_s = 4095;
while (v_s != 0) {
while (true) {
if (v_s == 0) {
status = puffs_gif_error_bad_gif_image;
goto cleanup0;
}
v_s -= 1;
goto label_1_break;
}
label_1_break:;
} else {
status = puffs_gif_error_bad_gif_image;
goto cleanup0;