Skip to content

Commit d5fee85

Browse files
committed
Avoid undefined Addr type
1 parent a9aea09 commit d5fee85

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bindiff/bindiff.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def iter_function_matches(self) -> list[tuple[FunctionBinExport, FunctionBinExpo
127127
return [(self.primary[match.address1], self.secondary[match.address2], match) \
128128
for match in self.primary_functions_match.values()]
129129

130-
def _unmatched_bbs(self, function: FunctionBinExport, map: dict[Addr, dict[Addr, BasicBlockMatch]]) -> list[BasicBlockBinExport]:
130+
def _unmatched_bbs(self, function: FunctionBinExport, map: dict[int, dict[int, BasicBlockMatch]]) -> list[BasicBlockBinExport]:
131131
bbs = []
132132
for bb_addr, bb in function.items():
133133
if maps := map.get(bb_addr):
@@ -180,7 +180,7 @@ def iter_basicblock_matches(self,
180180
items.append((bb, function2[match.address2], match))
181181
return items
182182

183-
def _unmatched_instrs(self, bb: BasicBlockBinExport, map: dict[Addr, dict[Addr, Addr]]) -> list[InstructionBinExport]:
183+
def _unmatched_instrs(self, bb: BasicBlockBinExport, map: dict[int, dict[int, int]]) -> list[InstructionBinExport]:
184184
instrs = []
185185
for addr, instr in bb.instructions.items():
186186
if addr not in map:

0 commit comments

Comments
 (0)