1
0
Fork 0
forked from len0rd/rockbox

Fix invalid use of bool in doom

Settings code tries to cast the bool pointer to an int pointer
and then write through it, which makes AddressSanitizer whine.

Change-Id: I1d6162fc98144cd6b40444016b3b48ef02967324
This commit is contained in:
Aidan MacDonald 2021-04-19 21:20:41 +01:00
parent 942b1dd072
commit 237919f1c3
3 changed files with 3 additions and 3 deletions

View file

@ -94,7 +94,7 @@ typedef unsigned Language_t;
// when multiple screen sizes are supported
#if(LCD_HEIGHT>LCD_WIDTH)
extern bool rotate_screen;
extern int rotate_screen;
// proff 08/17/98: Changed for high-res
#define MAX_SCREENWIDTH LCD_HEIGHT
#define MAX_SCREENHEIGHT LCD_HEIGHT