From 1d6cde054cf70ec1f7834cafdb7f68ec559e530e Mon Sep 17 00:00:00 2001 From: Giampaolo Rodola Date: Wed, 15 Jan 2025 00:41:59 +0100 Subject: [PATCH] change C type --- psutil/arch/osx/mem.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/psutil/arch/osx/mem.c b/psutil/arch/osx/mem.c index 33e3c438a..f52e63870 100644 --- a/psutil/arch/osx/mem.c +++ b/psutil/arch/osx/mem.c @@ -20,7 +20,7 @@ static int -psutil_sys_vminfo(vm_statistics_data_t *vmstat) { +psutil_sys_vminfo(vm_statistics64_t *vmstat) { kern_return_t ret; unsigned int count = HOST_VM_INFO64_COUNT; mach_port_t mport = mach_host_self(); @@ -49,7 +49,7 @@ psutil_virtual_mem(PyObject *self, PyObject *args) { int mib[2]; uint64_t total; size_t len = sizeof(total); - vm_statistics_data_t vm; + vm_statistics64_t vm; long pagesize = psutil_getpagesize(); // physical mem mib[0] = CTL_HW;