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));