From cd4de2ff9661eff49c4a1c59cf71fb67b9946a02 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Sun, 22 Nov 2020 12:50:49 +0100 Subject: [PATCH] Fixed data inspector to only show unsigned values --- source/views/view_data_inspector.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/views/view_data_inspector.cpp b/source/views/view_data_inspector.cpp index 458be4648..7e50e3416 100644 --- a/source/views/view_data_inspector.cpp +++ b/source/views/view_data_inspector.cpp @@ -42,13 +42,13 @@ namespace hex { } this->m_cachedData.emplace_back("uint8_t", hex::format("%u", this->m_previewData.unsigned8)); - this->m_cachedData.emplace_back("int8_t", hex::format("%d", this->m_previewData.unsigned8)); + this->m_cachedData.emplace_back("int8_t", hex::format("%d", this->m_previewData.signed8)); this->m_cachedData.emplace_back("uint16_t", hex::format("%u", this->m_previewData.unsigned16)); - this->m_cachedData.emplace_back("int16_t", hex::format("%d", this->m_previewData.unsigned16)); + this->m_cachedData.emplace_back("int16_t", hex::format("%d", this->m_previewData.signed16)); this->m_cachedData.emplace_back("uint32_t", hex::format("%lu", this->m_previewData.unsigned32)); - this->m_cachedData.emplace_back("int32_t", hex::format("%ld", this->m_previewData.unsigned32)); + this->m_cachedData.emplace_back("int32_t", hex::format("%ld", this->m_previewData.signed32)); this->m_cachedData.emplace_back("uint64_t", hex::format("%llu", this->m_previewData.unsigned64)); - this->m_cachedData.emplace_back("int64_t", hex::format("%lld", this->m_previewData.unsigned64)); + this->m_cachedData.emplace_back("int64_t", hex::format("%lld", this->m_previewData.signed64)); this->m_cachedData.emplace_back("ANSI Character / char8_t", hex::format("%c", this->m_previewData.ansiChar)); this->m_cachedData.emplace_back("Wide Character / char16_t", hex::format("%lc", this->m_previewData.wideChar));