aboutsummaryrefslogtreecommitdiff
path: root/libc/malloc_debug/tests/malloc_debug_system_tests.cpp
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2021-07-15 18:55:52 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2021-07-15 18:55:52 +0000
commit2e4be55966d0eb6d71260aa65b445141821644de (patch)
treec8792ad92e84eeecb98810615c012b82c8cd0941 /libc/malloc_debug/tests/malloc_debug_system_tests.cpp
parent48e981556ef0a2cfed18b716443c907f1843bc37 (diff)
parent5358cc40ab4288ed00c223f00cf898b7dc1a9484 (diff)
Merge "Avoid undefined compiler behavior"
Diffstat (limited to 'libc/malloc_debug/tests/malloc_debug_system_tests.cpp')
-rw-r--r--libc/malloc_debug/tests/malloc_debug_system_tests.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/malloc_debug/tests/malloc_debug_system_tests.cpp b/libc/malloc_debug/tests/malloc_debug_system_tests.cpp
index 68b3a1ec0..9d33189e9 100644
--- a/libc/malloc_debug/tests/malloc_debug_system_tests.cpp
+++ b/libc/malloc_debug/tests/malloc_debug_system_tests.cpp
@@ -511,7 +511,7 @@ TEST(MallocTests, DISABLED_exit_while_threads_freeing_allocs_with_header) {
for (size_t i = 0; i < kMaxThreads; i++) {
std::thread malloc_thread([&thread_mask, &run, &allocs, i] {
- thread_mask.fetch_or(1 << i);
+ thread_mask.fetch_or(1U << i);
while (!run)
;
for (auto ptr : allocs[i]) {