From 499bfe4584ea3334cda1501daa9aa3026edd45be Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Sun, 5 Jan 2020 16:08:32 +0100 Subject: loplugin:cstylecast (macOS) ...("from 'struct task_basic_info *' to 'task_info_t' (aka 'int *')", in code newly introduced with 0b8ae8725083eb0526a262d434cc06fb3f3e7336 "tdf#125662: disable parallel-zip if the memory...") Change-Id: I8ae16b4e6055b0841e9143b554bd832cb72346f5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86243 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- comphelper/source/misc/meminfo.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'comphelper') diff --git a/comphelper/source/misc/meminfo.cxx b/comphelper/source/misc/meminfo.cxx index d6508e9de567..762d4ef1a9b2 100644 --- a/comphelper/source/misc/meminfo.cxx +++ b/comphelper/source/misc/meminfo.cxx @@ -56,7 +56,8 @@ static sal_Int64 getMemUsedBySelf() if (host_page_size(mach_host_self(), &pageSize) != KERN_SUCCESS) return -1; - if (task_info(mach_task_self(), TASK_BASIC_INFO, (task_info_t)&tInfo, &tInfoCount) + if (task_info(mach_task_self(), TASK_BASIC_INFO, reinterpret_cast(&tInfo), + &tInfoCount) != KERN_SUCCESS) return -1; -- cgit