Skip to content

Commit

Permalink
Add mr review change
Browse files Browse the repository at this point in the history
  • Loading branch information
mari-mari committed Sep 7, 2023
1 parent 4938c8d commit 620c5e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions decompiler/frontend/binaryninja/handlers/unary.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ def _lift_load_struct(self, instruction: mediumlevelil.MediumLevelILLoadStruct,
"""Lift a MLIL_LOAD_STRUCT_SSA (struct member access e.g. var#n->x) instruction."""
struct_variable = self._lifter.lift(instruction.src)
struct_ptr: Pointer = self._lifter.lift(instruction.src.expr_type)
struct_member_name = struct_ptr.type.get_member_by_offset(instruction.offset).name
return MemberAccess(vartype=struct_ptr, operands=[struct_variable], offset=instruction.offset, member_name=struct_member_name)
struct_member = struct_ptr.type.get_member_by_offset(instruction.offset)
return MemberAccess(vartype=struct_ptr, operands=[struct_variable], offset=struct_member.offset, member_name=struct_member.name)

def _lift_ftrunc(self, instruction: mediumlevelil.MediumLevelILFtrunc, **kwargs) -> UnaryOperation:
"""Lift a MLIL_FTRUNC operation."""
Expand Down

0 comments on commit 620c5e1

Please sign in to comment.