Added possible support for MacOS. Completely untested.

Relevant: #32
This commit is contained in:
WerWolv
2020-12-06 13:48:56 +01:00
parent 68f93c5e3d
commit 4720cf9fbe
9 changed files with 26 additions and 26 deletions

View File

@@ -63,7 +63,7 @@ namespace hex {
for (u64 i = 0; i < this->m_dataProvider->getSize(); i += this->m_blockSize) {
std::array<float, 256> blockValueCounts = { 0 };
this->m_dataProvider->read(i, buffer.data(), std::min(size_t(this->m_blockSize), this->m_dataProvider->getSize() - i));
this->m_dataProvider->read(i, buffer.data(), std::min(u64(this->m_blockSize), this->m_dataProvider->getSize() - i));
for (size_t j = 0; j < this->m_blockSize; j++) {
blockValueCounts[buffer[j]]++;