Skip to content

Commit

Permalink
swap upper_bound -> lower_bound, same result but matching comment
Browse files Browse the repository at this point in the history
  • Loading branch information
fabian-lunarg committed Sep 5, 2024
1 parent 6880b09 commit 6a804c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framework/decode/vulkan_buffer_tracker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ const BufferInfo* VulkanBufferTracker::GetBufferInfo(VkDeviceAddress
if (!address_map.empty())
{
// find first address equal or greater
auto address_it = address_map.upper_bound(device_address);
auto address_it = address_map.lower_bound(device_address);

if (address_it == address_map.end() || address_it->first > device_address)
{
Expand Down

0 comments on commit 6a804c0

Please sign in to comment.