summaryrefslogtreecommitdiff
path: root/runtime/gc/allocator/rosalloc.cc
diff options
context:
space:
mode:
author Andreas Gampe <agampe@google.com> 2018-09-20 13:54:52 -0700
committer Andreas Gampe <agampe@google.com> 2019-04-25 20:41:37 +0000
commit7c5acbb122485b6215dc34defc1f19e07390bb95 (patch)
treeaf0889bb17ef622b8c51d9f110991ca025caef16 /runtime/gc/allocator/rosalloc.cc
parent51c655847f2f7d2a9127574d3aeda12755014608 (diff)
ART: Fix some types
Use better types and fix some typing issues exposed by clang-tidy's readability-implicit-bool-conversion. Bug: 32619234 Test: WITH_TIDY=1 mmma art Change-Id: I787d291a4843a3192a84853d105d57377b774b23
Diffstat (limited to 'runtime/gc/allocator/rosalloc.cc')
-rw-r--r--runtime/gc/allocator/rosalloc.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/gc/allocator/rosalloc.cc b/runtime/gc/allocator/rosalloc.cc
index d4b9fabd0f..87863656c6 100644
--- a/runtime/gc/allocator/rosalloc.cc
+++ b/runtime/gc/allocator/rosalloc.cc
@@ -890,7 +890,7 @@ inline bool RosAlloc::Run::MergeThreadLocalFreeListToFreeList(bool* is_all_free_
DCHECK(IsThreadLocal());
// Merge the thread local free list into the free list and clear the thread local free list.
const uint8_t idx = size_bracket_idx_;
- bool thread_local_free_list_size = thread_local_free_list_.Size();
+ size_t thread_local_free_list_size = thread_local_free_list_.Size();
const size_t size_before = free_list_.Size();
free_list_.Merge(&thread_local_free_list_);
const size_t size_after = free_list_.Size();