diff options
-rw-r--r-- | src/client/mac/handler/minidump_generator.cc | 3 |
1 files changed, 2 insertions, 1 deletions
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<u_int32_t>(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<int>(info_ptr->process_id) }; u_int mibsize = static_cast<u_int>(sizeof(mib) / sizeof(mib[0])); size_t size; if (!sysctl(mib, mibsize, NULL, &size, NULL, 0)) { |