sys: ImU64 is not 64 bit everywhere...

This commit is contained in:
WerWolv 2021-03-02 14:32:18 +01:00
parent b6939654b3
commit 9481c70ecd
2 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ namespace hex {
float m_highestBlockEntropy = 0;
std::vector<float> m_blockEntropy;
std::array<u64, 256> m_valueCounts = { 0 };
std::array<ImU64, 256> m_valueCounts = { 0 };
bool m_analyzing = false;
std::pair<u64, u64> m_analyzedRegion = { 0, 0 };

View File

@ -191,7 +191,7 @@ namespace hex {
ImPlot::SetNextPlotLimits(0, 256, 0, float(*std::max_element(this->m_valueCounts.begin(), this->m_valueCounts.end())) * 1.1F, ImGuiCond_Always);
if (ImPlot::BeginPlot("##distribution", "Address", "Count", ImVec2(-1,0), ImPlotFlags_NoLegend | ImPlotFlags_NoMenus | ImPlotFlags_NoBoxSelect, ImPlotAxisFlags_Lock, ImPlotAxisFlags_Lock)) {
static auto x = []{
std::array<u64, 256> result{ 0 };
std::array<ImU64, 256> result{ 0 };
std::iota(result.begin(), result.end(), 0);
return result;
}();