diff --git a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/FocusedMemoryRegion.hpp b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/FocusedMemoryRegion.hpp index b45af1c6..2d030ea7 100644 --- a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/FocusedMemoryRegion.hpp +++ b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/FocusedMemoryRegion.hpp @@ -9,7 +9,7 @@ namespace Bloom enum class MemoryRegionDataType: std::uint8_t { UNKNOWN, - INTEGER, + UNSIGNED_INTEGER, ASCII_STRING, }; diff --git a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/HexViewerWidget/ValueAnnotationItem.cpp b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/HexViewerWidget/ValueAnnotationItem.cpp index 6603f9f0..244f8380 100644 --- a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/HexViewerWidget/ValueAnnotationItem.cpp +++ b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/HexViewerWidget/ValueAnnotationItem.cpp @@ -34,7 +34,7 @@ void ValueAnnotationItem::refreshLabelText() { } switch (this->focusedMemoryRegion.dataType) { - case MemoryRegionDataType::INTEGER: { + case MemoryRegionDataType::UNSIGNED_INTEGER: { std::uint64_t integerValue = 0; for (const auto& byte : data) { integerValue = (integerValue << 8) | byte; diff --git a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/MemoryRegionManager/FocusedRegionItem.cpp b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/MemoryRegionManager/FocusedRegionItem.cpp index bb9ea40f..e383b564 100644 --- a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/MemoryRegionManager/FocusedRegionItem.cpp +++ b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/MemoryRegionManager/FocusedRegionItem.cpp @@ -55,8 +55,10 @@ void FocusedRegionItem::initFormInputs() { } switch (region.dataType) { - case MemoryRegionDataType::INTEGER: { - this->dataTypeInput->setCurrentText(FocusedRegionItem::dataTypeOptionsByName.at("integer").text); + case MemoryRegionDataType::UNSIGNED_INTEGER: { + this->dataTypeInput->setCurrentText(FocusedRegionItem::dataTypeOptionsByName.at("unsigned_integer").text); + break; + } break; } case MemoryRegionDataType::ASCII_STRING: { diff --git a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/MemoryRegionManager/FocusedRegionItem.hpp b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/MemoryRegionManager/FocusedRegionItem.hpp index 05601f9e..4ab8dde1 100644 --- a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/MemoryRegionManager/FocusedRegionItem.hpp +++ b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/MemoryRegionManager/FocusedRegionItem.hpp @@ -38,7 +38,7 @@ namespace Bloom::Widgets QString, DataTypeOption >({ {"other", DataTypeOption("Other", MemoryRegionDataType::UNKNOWN)}, - {"integer", DataTypeOption("Integer", MemoryRegionDataType::INTEGER)}, + {"unsigned_integer", DataTypeOption("Unsigned Integer", MemoryRegionDataType::UNSIGNED_INTEGER)}, {"ascii", DataTypeOption("ASCII String", MemoryRegionDataType::ASCII_STRING)}, }); };