mirror of
https://git.freebsd.org/ports.git
synced 2025-05-24 23:16:33 -04:00
Details: - clang15 performs stricter checks for pointer conversions, some questionable conversions graduated from warnings to errors - Fixes multimedia/mencoder builds as well MFH: 2023Q1
11 lines
416 B
C
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) {
|