Remove redundant loop condition in std/bmp

This commit is contained in:
Nigel Tao committed 2020-12-05 23:11:41 +11:00
1 parent f67d83cc07
commit 49b5b3c03c
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -17320,7 +17320,7 @@ wuffs_bmp__decoder__swizzle_compress3(
v_p1_temp = (self->private_impl.f_width - self->private_impl.f_dst_x);
v_p1 = wuffs_base__u32__min(v_p1_temp, 256);
v_p0 = 0;
while ((v_p0 < v_p1) && (((uint64_t)(io2_a_src - iop_a_src)) >= 2)) {
while (v_p0 < v_p1) {
if (self->private_impl.f_bits_per_pixel == 16) {
if (((uint64_t)(io2_a_src - iop_a_src)) < 2) {
goto label__0__break;
+1 -1
View File
@@ -499,7 +499,7 @@ pri func decoder.swizzle_compress3!(dst: ptr base.pixel_buffer, src: base.io_rea
p1_temp = this.width ~mod- this.dst_x
p1 = p1_temp.min(a: 256)
p0 = 0
while (p0 < p1) and (args.src.length() >= 2) {
while p0 < p1 {
assert p0 < 256 via "a < b: a < c; c <= b"(c: p1)
if this.bits_per_pixel == 16 {
if args.src.length() < 2 {