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.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/plugins/doom/doomdef.h') 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; // 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 -- cgit v1.2.3