8

There are a few places where the decompiler displays a number as a hex literal when it's much clearer as a decimal literal. How do I change this?

1 Answer 1

3

Right click on the number

Convert -> Unsigned Decimal:

enter image description here

5
  • 5
    This works in the disassembler output window ("Listing") but there's no "Convert" entry for numbers in the decompiler output window ("Decompile"). Commented May 2, 2019 at 10:41
  • 1
    so true, I missed the "Decompile" word distinction in the question Commented May 2, 2019 at 21:06
  • interesting also change a number to a const/enum using Equate in the Listing window, it is not respected in the disassembly window. Sounds like a bug report should be opened. Commented May 2, 2019 at 22:11
  • 1
    Just checked and there's one already open: github.com/NationalSecurityAgency/ghidra/issues/21 Commented May 3, 2019 at 7:42
  • This fixes the decompiler output nonetheless. Commented May 3, 2019 at 21:41

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.