summaryrefslogtreecommitdiff
blob: df708d337b65dec5011efec4c0541ba2248274e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From 13d582b56faf9caca114ec5625b34a7859ecb41f Mon Sep 17 00:00:00 2001
From: OBattler <oubattler@gmail.com>
Date: Fri, 5 Jan 2024 13:01:17 +0100
Subject: [PATCH] Unix: Use proper parentheses to cast the result, not the
 flags, fixes #3994.

---
 src/unix/unix.c | 4 +---
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/unix/unix.c b/src/unix/unix.c
index e784df38e6..cfa8243135 100644
--- a/src/unix/unix.c
+++ b/src/unix/unix.c
@@ -635,7 +635,7 @@
     SDL_MessageBoxData       msgdata;
     SDL_MessageBoxButtonData msgbtn;
     if (!header)
-        header = (void *) (flags & MBX_ANSI) ? "86Box" : L"86Box";
+        header = (void *) ((flags & MBX_ANSI) ? "86Box" : L"86Box");
     if (header <= (void *) 7168)
         header = (void *) plat_get_string((int) header);
     if (message <= (void *) 7168)