Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
Spartak Ehrlich committed Mar 21, 2024
1 parent f538c60 commit 02606db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion decompiler/frontend/binaryninja/handlers/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def lift_constant_pointer(self, pointer: mediumlevelil.MediumLevelILConstPtr, **
if isinstance(res.type, Pointer) and res.type.type == CustomType.void():
return res

if isinstance(pointer, mediumlevelil.MediumLevelILImport): # Temp fix for '&'
if isinstance(pointer, mediumlevelil.MediumLevelILImport): # Temp fix for '&'
return res

return UnaryOperation(
Expand Down
2 changes: 1 addition & 1 deletion decompiler/frontend/binaryninja/handlers/globals.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def _get_gvar_name(self, bninjaName: Optional[str], addr: int) -> str:
if bninjaName is None:
return GLOBAL_VARIABLE_PREFIX + f"{addr:x}"
if bninjaName in lifted_names:
return bninjaName + '_' + f"{addr:x}" # @Reviewer: Other ideas for distinct name?
return bninjaName + "_" + f"{addr:x}" # @Reviewer: Other ideas for distinct name?
return bninjaName

def _build_global_variable(self, name: Optional[str], type: Type, addr: int, init_value, ssa_label: Optional[int]) -> GlobalVariable:
Expand Down

0 comments on commit 02606db

Please sign in to comment.