Skip to content

Commit

Permalink
Fix offsets type to be strings
Browse files Browse the repository at this point in the history
  • Loading branch information
alandtse committed May 14, 2022
1 parent ca0a5c8 commit 1f85fe6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions vr_address_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -485,19 +485,19 @@ def match_results(
directory = result["directory"]
filename = result["filename"]
match = result["matches"]
offset = 0
offset:str = "0"
conversion = ""
vr_addr = ""
warning = ""
if match.get("id_with_offset"):
id = int(match.get("id_with_offsetd"))
offset = match.get("offset", 0)
offset = match.get("offset", "0")
elif (match.get("sse")):
id = int(match.get("sse"))
offset = int(match.get("sse_offset",0),16) if match.get("sse_offset") else 0
offset = match.get("sse_offset","0") if match.get("sse_offset") else "0"
elif match.get("id"):
id = int(match.get("id"))
offset = 0
offset = "0"
else:
continue
if (
Expand Down

0 comments on commit 1f85fe6

Please sign in to comment.