mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2024-11-22 04:05:39 +00:00
GP-3763 - Updated structure tooltips to show length in hex
This commit is contained in:
parent
6cd4fd80f7
commit
e7cb7d06ca
@ -378,10 +378,13 @@ public abstract class HTMLDataTypeRepresentation {
|
||||
if (length < 0) {
|
||||
return new TextLine(" <i>Unsized</i>");
|
||||
}
|
||||
|
||||
if (dataType.isZeroLength()) {
|
||||
length = 0;
|
||||
return new TextLine("0");
|
||||
}
|
||||
return new TextLine(Integer.toString(length));
|
||||
|
||||
return new TextLine(
|
||||
Integer.toString(length) + " (" + NumericUtilities.toHexString(length) + ")");
|
||||
}
|
||||
|
||||
private static boolean canLinkDataType(DataType dt) {
|
||||
|
Loading…
Reference in New Issue
Block a user