Use "x < y" when bounds checking "x - y".

This commit is contained in:
Nigel Tao committed 2017-06-02 11:39:51 +10:00
1 parent 747247a557
commit 80a39bfccb
3 files changed
+28 -4

No files matched your search

+1
View File
@@ -168,6 +168,7 @@ puffs_gif_status puffs_gif_lzw_decoder_decode(puffs_gif_lzw_decoder* self) {
v_n_bits += 8;
}
v_bits >>= v_width;
v_n_bits -= v_width;
goto label_0_break;
v_n_bits = 0;
}