ports/multimedia/mplayer/files/patch-loader_ext.c
Thomas Zander d8b84fe7c9 multimedia/mplayer: Fix build with llvm15
Details:
- clang15 performs stricter checks for pointer conversions, some
  questionable conversions graduated from warnings to errors
- Fixes multimedia/mencoder builds as well

MFH:		2023Q1
2023-02-12 12:59:46 +01:00

11 lines
416 B
C

--- loader/ext.c.orig 2021-01-23 18:22:09 UTC
+++ loader/ext.c
@@ -444,7 +444,7 @@ LPVOID WINAPI VirtualAlloc(LPVOID address, DWORD size,
if (type&MEM_RESERVE && (unsigned)address&0xffff) {
size += (unsigned)address&0xffff;
- address = (unsigned)address&~0xffff;
+ address = (void*)((unsigned)address&~0xffff);
}
pgsz = sysconf(_SC_PAGESIZE);
if (type&MEM_COMMIT && (unsigned)address%pgsz) {