diff options
author | Aidan MacDonald <amachronic@protonmail.com> | 2021-04-19 21:20:41 +0100 |
---|---|---|
committer | Aidan MacDonald <amachronic@protonmail.com> | 2021-05-13 18:33:27 +0100 |
commit | 237919f1c337b2ac0b5b30d65964dd4bbb126457 (patch) | |
tree | fab62abc7c42eb54325ddddae1b73cf6bc32355c /apps/plugins/doom/doomdef.h | |
parent | 942b1dd072abc071a4024adc5198976878024bcb (diff) | |
download | rockbox-237919f1c337b2ac0b5b30d65964dd4bbb126457.tar.gz rockbox-237919f1c337b2ac0b5b30d65964dd4bbb126457.zip |
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
Diffstat (limited to 'apps/plugins/doom/doomdef.h')
-rw-r--r-- | apps/plugins/doom/doomdef.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugins/doom/doomdef.h b/apps/plugins/doom/doomdef.h index 05346cd443..43114f75ef 100644 --- a/apps/plugins/doom/doomdef.h +++ b/apps/plugins/doom/doomdef.h | |||
@@ -94,7 +94,7 @@ typedef unsigned Language_t; | |||
94 | // when multiple screen sizes are supported | 94 | // when multiple screen sizes are supported |
95 | 95 | ||
96 | #if(LCD_HEIGHT>LCD_WIDTH) | 96 | #if(LCD_HEIGHT>LCD_WIDTH) |
97 | extern bool rotate_screen; | 97 | extern int rotate_screen; |
98 | // proff 08/17/98: Changed for high-res | 98 | // proff 08/17/98: Changed for high-res |
99 | #define MAX_SCREENWIDTH LCD_HEIGHT | 99 | #define MAX_SCREENWIDTH LCD_HEIGHT |
100 | #define MAX_SCREENHEIGHT LCD_HEIGHT | 100 | #define MAX_SCREENHEIGHT LCD_HEIGHT |