summaryrefslogtreecommitdiff
path: root/apps/plugins/doom/doomdef.c
diff options
context:
space:
mode:
authorAidan MacDonald <amachronic@protonmail.com>2021-04-19 21:20:41 +0100
committerAidan MacDonald <amachronic@protonmail.com>2021-05-13 18:33:27 +0100
commit237919f1c337b2ac0b5b30d65964dd4bbb126457 (patch)
treefab62abc7c42eb54325ddddae1b73cf6bc32355c /apps/plugins/doom/doomdef.c
parent942b1dd072abc071a4024adc5198976878024bcb (diff)
downloadrockbox-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.c2
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)
37bool rotate_screen=0; 37int rotate_screen=0;
38int SCREENWIDTH; 38int SCREENWIDTH;
39int SCREENHEIGHT; 39int SCREENHEIGHT;
40#endif 40#endif