Skip to content
Snippets Groups Projects
Commit 476f5e8a 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 60668a72
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #4537 passed
......@@ -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.
Please register or to comment