2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-18 14:00:09 +00:00

Fix build with GCC.

This commit is contained in:
John Preston
2023-10-13 10:10:11 +04:00
parent 0e79bd3d12
commit 4b618a3578
4 changed files with 2 additions and 5 deletions

View File

@@ -23,7 +23,7 @@ SegmentTree::SegmentTree(std::vector<int> array)
// The max size of this array is about 2 * 2 ^ log2(n) + 1.
const auto size = 2 * std::pow(
2.,
std::floor((std::logf(_array.size()) / std::logf(2.)) + 1));
std::floor((std::log(_array.size()) / std::log(2.)) + 1));
_heap.resize(int(size));
build(1, 0, _array.size());
}