From 237919f1c337b2ac0b5b30d65964dd4bbb126457 Mon Sep 17 00:00:00 2001 From: Aidan MacDonald Date: Mon, 19 Apr 2021 21:20:41 +0100 Subject: 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 --- apps/plugins/doom/doomdef.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/plugins/doom/doomdef.c') 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 @@ // Location for any defines turned variables. #if(LCD_HEIGHT>LCD_WIDTH) -bool rotate_screen=0; +int rotate_screen=0; int SCREENWIDTH; int SCREENHEIGHT; #endif -- cgit v1.2.3