diff options
Diffstat (limited to 'app-emulation/86Box/files/86Box-4.0.1-incompatible-pointer-types.patch')
-rw-r--r-- | app-emulation/86Box/files/86Box-4.0.1-incompatible-pointer-types.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/app-emulation/86Box/files/86Box-4.0.1-incompatible-pointer-types.patch b/app-emulation/86Box/files/86Box-4.0.1-incompatible-pointer-types.patch new file mode 100644 index 000000000000..df708d337b65 --- /dev/null +++ b/app-emulation/86Box/files/86Box-4.0.1-incompatible-pointer-types.patch @@ -0,0 +1,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) |