mirror of
https://github.com/Mr-X-GTA/GTAV-Classes-1.git
synced 2024-12-22 14:37:31 +08:00
resolve std::numeric_limits::max() max(a, b) conflict (#158)
This commit is contained in:
parent
34f46160d0
commit
5a2ef4d55e
@ -63,7 +63,7 @@ namespace rage
|
|||||||
auto value_array_size = value_array.size();
|
auto value_array_size = value_array.size();
|
||||||
auto old_capacity = m_count;
|
auto old_capacity = m_count;
|
||||||
|
|
||||||
if ((value_array_size + m_count) > std::numeric_limits<uint16_t>::max())
|
if ((value_array_size + m_count) > (std::numeric_limits<uint16_t>::max)())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
auto size = (uint16_t)value_array_size;
|
auto size = (uint16_t)value_array_size;
|
||||||
@ -84,7 +84,7 @@ namespace rage
|
|||||||
auto value_array_size = value_array.size();
|
auto value_array_size = value_array.size();
|
||||||
auto old_capacity = m_count;
|
auto old_capacity = m_count;
|
||||||
|
|
||||||
if ((value_array_size + m_count) > std::numeric_limits<uint16_t>::max())
|
if ((value_array_size + m_count) > (std::numeric_limits<uint16_t>::max)())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
auto size = (uint16_t)value_array_size;
|
auto size = (uint16_t)value_array_size;
|
||||||
@ -105,7 +105,7 @@ namespace rage
|
|||||||
auto value_array_size = value_array.size();
|
auto value_array_size = value_array.size();
|
||||||
auto old_capacity = m_count;
|
auto old_capacity = m_count;
|
||||||
|
|
||||||
if ((value_array_size + m_count) > std::numeric_limits<uint16_t>::max())
|
if ((value_array_size + m_count) > (std::numeric_limits<uint16_t>::max)())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
auto size = (uint16_t)value_array_size;
|
auto size = (uint16_t)value_array_size;
|
||||||
|
Loading…
Reference in New Issue
Block a user