aboutsummaryrefslogtreecommitdiff
path: root/ethosu/tensor_allocator/search_allocator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ethosu/tensor_allocator/search_allocator.cpp')
-rw-r--r--ethosu/tensor_allocator/search_allocator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ethosu/tensor_allocator/search_allocator.cpp b/ethosu/tensor_allocator/search_allocator.cpp
index ce5c46de..c7c418a0 100644
--- a/ethosu/tensor_allocator/search_allocator.cpp
+++ b/ethosu/tensor_allocator/search_allocator.cpp
@@ -31,7 +31,7 @@ SearchAllocator::SearchAllocator(const std::vector<LiveRange> &live_ranges, uint
uint32_t max_end_time = 0;
for (size_t i = 0; i < lrs.size(); ++i) {
auto &lr = lrs[i];
- lr.id = i;
+ lr.id = static_cast<int>(i);
max_end_time = std::max(max_end_time, lr.end_time);
}
lrs_at_time.resize(max_end_time + 1);