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

UBSan claims this is undefined behaviour...

I don't believe them, but I'll fix it anyway.
parent 2d0ccfc9
No related branches found
No related tags found
No related merge requests found
......@@ -853,7 +853,7 @@ interpolate_height(uint32_t* src, uint32_t* dst, int width, int height, int newh
memcpy(nline, src + width, width * sizeof(*tline));
for (y = 0; y < newheight; y++) {
const int yposi = ypos;
const uint16_t weight = ypos * 65536;
const uint16_t weight = ((uint32_t)(ypos * 65536)) & 0xffff;
if (yposi != last_yposi) {
ywn += width;
last_yposi = yposi;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment