Skip to content

Commit

Permalink
0 pad hex values in memory displacement
Browse files Browse the repository at this point in the history
  • Loading branch information
ZehMatt committed May 12, 2024
1 parent 506dc4b commit 2052a3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/zasm/src/formatter/formatter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -337,11 +337,11 @@ namespace zasm::formatter
{
if (disp < 0)
{
ctx.format("0x%" PRIx64, -disp);
ctx.format("0x%02" PRIx64, -disp);
}
else
{
ctx.format("0x%" PRIx64, disp);
ctx.format("0x%02" PRIx64, disp);
}
}
else
Expand Down

0 comments on commit 2052a3a

Please sign in to comment.