Skip to content

Commit c3f3b2b

Browse files
committed
[BOOTVID:XBOX] Fix MSVC build
Fix two similar warnings, that were treated as errors: - warning C4146: unary minus operator applied to unsigned type, result still unsigned Addendum to fa1ec0a. CORE-16216 CORE-16219
1 parent ea90485 commit c3f3b2b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/base/bootvid/i386/xbox/bootvid.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ ApplyPalette(VOID)
6666
/* Left panning */
6767
for (y = 0; y < SCREEN_HEIGHT; y++)
6868
{
69-
Frame = (PULONG)(FrameBufferStart + FB_OFFSET(-PanH, y));
69+
Frame = (PULONG)(FrameBufferStart + FB_OFFSET(-(LONG)PanH, y));
7070

7171
for (x = 0; x < PanH; x++)
7272
{
@@ -98,7 +98,7 @@ ApplyPalette(VOID)
9898
}
9999

100100
/* Bottom panning */
101-
Frame = (PULONG)(FrameBufferStart + FB_OFFSET(-PanH, SCREEN_HEIGHT));
101+
Frame = (PULONG)(FrameBufferStart + FB_OFFSET(-(LONG)PanH, SCREEN_HEIGHT));
102102
for (x = 0; x < PanV * FrameBufferWidth; x++)
103103
{
104104
*Frame++ = CachedPalette[0];

0 commit comments

Comments
 (0)