Skip to content

Commit

Permalink
Fix negative offset conversion bug
Browse files Browse the repository at this point in the history
  • Loading branch information
GTO2013 committed Dec 1, 2023
1 parent 2f19ee7 commit 036f84a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ private Node parseXDFHeader(Document doc, Node romNode, Node header) {
idAddress.setTextContent("-1");

Element offsetNode = doc.createElement("offset");
offsetNode.setTextContent("0x" + Integer.toHexString(offset));
offsetNode.setTextContent("0x" + Integer.toString(offset, 16));

romIDNode.appendChild(offsetNode);
romIDNode.appendChild(idAddress);
Expand Down

0 comments on commit 036f84a

Please sign in to comment.