mirror of
https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator.git
synced 2025-05-15 01:08:31 +00:00
Merge branch 'master' of https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator into master
This commit is contained in:
commit
8cd86b6dd4
1 changed files with 197 additions and 197 deletions
|
@ -4749,7 +4749,7 @@ static IterT VmaBinaryFindFirstNotLess(IterT beg, IterT end, const KeyT &key, co
|
|||
size_t down = 0, up = (end - beg);
|
||||
while(down < up)
|
||||
{
|
||||
const size_t mid = (down + up) / 2;
|
||||
const size_t mid = down + (up - down) / 2; // Overflow-safe midpoint calculation
|
||||
if(cmp(*(beg+mid), key))
|
||||
{
|
||||
down = mid + 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue