Save the short_src status code.

This commit is contained in:
Nigel Tao committed 2017-06-04 11:46:47 +10:00
1 parent 2e35b4cfd0
commit 9a27953faf
2 files changed
+12 -6

No files matched your search

+2 -1
View File
@@ -217,7 +217,8 @@ puffs_gif_status puffs_gif_lzw_decoder_decode(puffs_gif_lzw_decoder* self,
while (1) {
while ((v_n_bits < v_width)) {
if (a_src->ri >= a_src->wi) {
return puffs_gif_status_short_src;
status = puffs_gif_status_short_src;
goto cleanup0;
}
uint8_t t_0 = a_src->ptr[a_src->ri++];
v_bits |= ((uint32_t)(t_0));