Merge pull request #25 from griffin2000/master

Avoid ambiguity error on GCC
This commit is contained in:
Rich Geldreich
2020-10-09 00:23:03 -04:00
committed by GitHub
+2 -2
View File
@@ -22,8 +22,8 @@ namespace crnlib
return true;
size_t new_capacity = min_new_capacity;
if ((grow_hint) && (!math::is_power_of_2(new_capacity)))
new_capacity = math::next_pow2(new_capacity);
if ((grow_hint) && (!math::is_power_of_2((uint64)new_capacity)))
new_capacity = math::next_pow2((uint64)new_capacity);
CRNLIB_ASSERT(new_capacity && (new_capacity > m_capacity));