size_t over int on BinSearchArrayMap

This commit is contained in:
Metehan Tuncbilek
2024-09-26 15:49:38 +03:00
parent fc675f9f50
commit 6661e9e9af

View File

@@ -56,12 +56,12 @@ namespace OpenVulkano
Pair& FindPair(const K key)
{
int low = 0;
int high = m_data.size() - 1;
size_t low = 0;
size_t high = m_data.size() - 1;
while (low <= high)
{
int mid = low + (high - low) / 2;
size_t mid = low + (high - low) / 2;
if (m_data[mid].first == key)
{