summaryrefslogtreecommitdiffstats
path: root/gpu/command_buffer/common/id_allocator.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gpu/command_buffer/common/id_allocator.cc')
-rw-r--r--gpu/command_buffer/common/id_allocator.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gpu/command_buffer/common/id_allocator.cc b/gpu/command_buffer/common/id_allocator.cc
index 22c55e3..faa4599 100644
--- a/gpu/command_buffer/common/id_allocator.cc
+++ b/gpu/command_buffer/common/id_allocator.cc
@@ -27,7 +27,7 @@ ResourceId IdAllocator::FindFirstFree() const {
ResourceId IdAllocator::AllocateIDAtOrAbove(ResourceId desired_id) {
DCHECK_LT(static_cast<ResourceId>(used_ids_.size()),
static_cast<ResourceId>(-1));
- for (; InUse(desired_id); ++desired_id);
+ for (; InUse(desired_id); ++desired_id) {}
MarkAsUsed(desired_id);
return desired_id;
}