Skip to content

Commit

Permalink
Fix filtering another memory dump from memory tool
Browse files Browse the repository at this point in the history
Blocks with the same address but varying types and size will not be
considered the same block anymore
  • Loading branch information
Speedphoenix committed Nov 28, 2024
1 parent 80036b6 commit 3c279e3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions other/haxelib/hlmem/Memory.hx
Original file line number Diff line number Diff line change
Expand Up @@ -940,12 +940,14 @@ class Memory {
return false;
case Intersect:
for( m in otherMems ) {
if( m.pointerBlock.get(b.addr ) == null )
var b2 = m.pointerBlock.get(b.addr);
if( b2 == null || b2.typePtr != b.typePtr || b2.size != b.size)
return true;
}
case Unique:
for( m in otherMems ) {
if( m.pointerBlock.get(b.addr ) != null )
var b2 = m.pointerBlock.get(b.addr);
if( b2 != null && b2.typePtr == b.typePtr && b2.size == b.size )
return true;
}
}
Expand Down

0 comments on commit 3c279e3

Please sign in to comment.