diff options
-rw-r--r-- | comphelper/source/misc/meminfo.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
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<task_info_t>(&tInfo), + &tInfoCount) != KERN_SUCCESS) return -1; |