]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commit
pcem: make MGA high-bit masks unsigned
authorStefan Reinauer <stefan.reinauer@coreboot.org>
Mon, 1 Jun 2026 20:38:59 +0000 (13:38 -0700)
committerStefan Reinauer <stefan.reinauer@coreboot.org>
Mon, 1 Jun 2026 20:38:59 +0000 (13:38 -0700)
commit72bb7b094e5782d798ce4c3a17018618e3e4d782
treea29e391316bfb60a9a42ddf821335df473d6717f
parent09e21b3397f537a51916913be8b15e8b3c4dbe2c
pcem: make MGA high-bit masks unsigned

MGA defines several bit-31 masks from a signed int literal.
Shifting a signed 1 into the sign bit is undefined behavior in C.

Use UINT32_C(1) so the masks are built in unsigned arithmetic.
This matches the same cleanup merged upstream in 86Box, with the
extra OPTION_POWERPC mask that exists in this imported copy.
pcem/vid_mga.cpp