Skip to content
Snippets Groups Projects
Commit c142191d authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Initialize off, then add an assert to suppress warning.

parent 819c6891
Branches
Tags
No related merge requests found
Pipeline #7891 failed
......@@ -1929,7 +1929,7 @@ int bitmap_setpixels(uint32_t sx, uint32_t sy, uint32_t ex, uint32_t ey, uint32_
int cpy = sy % vstat.charheight;
bool xupdated = false;
bool yupdated = false;
int off;
int off = INT_MIN;
int crows = vstat.rows * vstat.charheight;
int ccols = vstat.cols * vstat.charwidth;
for (y = sy; y <= ey; y++) {
......@@ -1962,6 +1962,7 @@ int bitmap_setpixels(uint32_t sx, uint32_t sy, uint32_t ex, uint32_t ey, uint32_
cpx = 0;
charx++;
xupdated = false;
assert(off >= 0);
off = vmem_next_offset(vstat.vmem, off);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment