diff --git a/src/client/mac/handler/minidump_generator.cc b/src/client/mac/handler/minidump_generator.cc index daf4c03c..4f388e6f 100644 --- a/src/client/mac/handler/minidump_generator.cc +++ b/src/client/mac/handler/minidump_generator.cc @@ -1246,7 +1246,8 @@ bool MinidumpGenerator::WriteMiscInfoStream(MDRawDirectory *misc_info_stream) { info_ptr->process_kernel_time = static_cast(usage.ru_stime.tv_sec); } - int mib[4] = { CTL_KERN, KERN_PROC, KERN_PROC_PID, info_ptr->process_id }; + int mib[4] = { CTL_KERN, KERN_PROC, KERN_PROC_PID, + static_cast(info_ptr->process_id) }; u_int mibsize = static_cast(sizeof(mib) / sizeof(mib[0])); size_t size; if (!sysctl(mib, mibsize, NULL, &size, NULL, 0)) {