diff options
-rw-r--r-- | compiler-rt/lib/sanitizer_common/sanitizer_mac.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_mac.cc b/compiler-rt/lib/sanitizer_common/sanitizer_mac.cc index 4861558e9aa..c9478927568 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_mac.cc +++ b/compiler-rt/lib/sanitizer_common/sanitizer_mac.cc @@ -215,8 +215,8 @@ int internal_fork() { int internal_sysctl(const int *name, unsigned int namelen, void *oldp, uptr *oldlenp, const void *newp, uptr newlen) { - return sysctl((int *)name, namelen, oldp, (size_t *)oldlenp, (void *)newp, - (size_t)newlen); + return sysctl(const_cast<int *>(name), namelen, oldp, (size_t *)oldlenp, + const_cast<void *>(newp), (size_t)newlen); } int internal_forkpty(int *amaster) { |