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.c | |
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.c')
-rw-r--r-- | apps/plugins/doom/doomdef.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugins/doom/doomdef.c b/apps/plugins/doom/doomdef.c index 3facfbb299..6ae4bb6894 100644 --- a/apps/plugins/doom/doomdef.c +++ b/apps/plugins/doom/doomdef.c | |||
@@ -34,7 +34,7 @@ | |||
34 | 34 | ||
35 | // Location for any defines turned variables. | 35 | // Location for any defines turned variables. |
36 | #if(LCD_HEIGHT>LCD_WIDTH) | 36 | #if(LCD_HEIGHT>LCD_WIDTH) |
37 | bool rotate_screen=0; | 37 | int rotate_screen=0; |
38 | int SCREENWIDTH; | 38 | int SCREENWIDTH; |
39 | int SCREENHEIGHT; | 39 | int SCREENHEIGHT; |
40 | #endif | 40 | #endif |