1
0
mirror of synced 2025-02-20 04:01:01 +01:00

Get ready for linux build

This commit is contained in:
WerWolv 2020-11-12 22:22:33 +01:00
parent a166bf4ed8
commit 1d15e3be18
3 changed files with 2 additions and 4 deletions

View File

@ -1,6 +1,7 @@
#pragma once
#include <cstdint>
#include <cstddef>
using u8 = std::uint8_t;
using u16 = std::uint16_t;

View File

@ -1,8 +1,5 @@
#pragma once
#include <windows.h>
#include <shobjidl.h>
#include "utils.hpp"
#include "views/view.hpp"

View File

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