commit | 2e4be55966d0eb6d71260aa65b445141821644de | [log] [tgz] |
---|---|---|
author | Treehugger Robot <treehugger-gerrit@google.com> | Thu Jul 15 18:55:52 2021 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Thu Jul 15 18:55:52 2021 +0000 |
tree | c8792ad92e84eeecb98810615c012b82c8cd0941 | |
parent | 48e981556ef0a2cfed18b716443c907f1843bc37 [diff] | |
parent | 5358cc40ab4288ed00c223f00cf898b7dc1a9484 [diff] |
Merge "Avoid undefined compiler behavior"
diff --git a/libc/malloc_debug/tests/malloc_debug_system_tests.cpp b/libc/malloc_debug/tests/malloc_debug_system_tests.cpp index 68b3a1e..9d33189 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 @@ 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]) {