diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2023-01-26 13:23:03 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2023-01-26 16:36:13 -0700 |
| commit | 1eaf180dd04efcf65ef981b1e1064658b5ec09c3 (patch) | |
| tree | c12e99871e9ba098bea523da0bde266d9afbd065 /lib/libcxx/src/memory.cpp | |
| parent | 85be0b8c6589f58d5667d0a8a8f94524d5de5ba6 (diff) | |
| download | zig-1eaf180dd04efcf65ef981b1e1064658b5ec09c3.tar.gz zig-1eaf180dd04efcf65ef981b1e1064658b5ec09c3.zip | |
update libcxx to llvm 16
Diffstat (limited to 'lib/libcxx/src/memory.cpp')
| -rw-r--r-- | lib/libcxx/src/memory.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libcxx/src/memory.cpp b/lib/libcxx/src/memory.cpp index bf96efa9ce..3fd5439049 100644 --- a/lib/libcxx/src/memory.cpp +++ b/lib/libcxx/src/memory.cpp @@ -152,21 +152,21 @@ static constinit __libcpp_mutex_t mut_back[__sp_mut_count] = }; _LIBCPP_CONSTEXPR __sp_mut::__sp_mut(void* p) noexcept - : __lx(p) + : __lx_(p) { } void __sp_mut::lock() noexcept { - auto m = static_cast<__libcpp_mutex_t*>(__lx); + auto m = static_cast<__libcpp_mutex_t*>(__lx_); __libcpp_mutex_lock(m); } void __sp_mut::unlock() noexcept { - __libcpp_mutex_unlock(static_cast<__libcpp_mutex_t*>(__lx)); + __libcpp_mutex_unlock(static_cast<__libcpp_mutex_t*>(__lx_)); } __sp_mut& @@ -194,7 +194,7 @@ align(size_t alignment, size_t size, void*& ptr, size_t& space) if (size <= space) { char* p1 = static_cast<char*>(ptr); - char* p2 = reinterpret_cast<char*>(reinterpret_cast<size_t>(p1 + (alignment - 1)) & -alignment); + char* p2 = reinterpret_cast<char*>(reinterpret_cast<uintptr_t>(p1 + (alignment - 1)) & -alignment); size_t d = static_cast<size_t>(p2 - p1); if (d <= space - size) { |
