Corrected stack pointer validation in TopLevelGroupItem
This commit is contained in:
@@ -29,10 +29,8 @@ namespace Bloom::Widgets
|
|||||||
const auto& currentStackPointer = this->hexViewerState.currentStackPointer;
|
const auto& currentStackPointer = this->hexViewerState.currentStackPointer;
|
||||||
const auto stackGroupingRequired = currentStackPointer.has_value()
|
const auto stackGroupingRequired = currentStackPointer.has_value()
|
||||||
&& this->hexViewerState.settings.groupStackMemory
|
&& this->hexViewerState.settings.groupStackMemory
|
||||||
&& (
|
&& *currentStackPointer >= this->hexViewerState.memoryDescriptor.addressRange.startAddress
|
||||||
static_cast<std::int64_t>(this->hexViewerState.memoryDescriptor.addressRange.endAddress)
|
&& (*currentStackPointer + 1) <= this->hexViewerState.memoryDescriptor.addressRange.endAddress;
|
||||||
- static_cast<std::int64_t>(*currentStackPointer + 1)
|
|
||||||
) > 0;
|
|
||||||
|
|
||||||
for (const auto& focusedRegion : this->focusedMemoryRegions) {
|
for (const auto& focusedRegion : this->focusedMemoryRegions) {
|
||||||
if (
|
if (
|
||||||
|
|||||||
Reference in New Issue
Block a user