mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 02:39:44 +02:00
GP-3278 fix DWARF enum signedness
This commit is contained in:
parent
02e547dac9
commit
837061b329
4 changed files with 75 additions and 23 deletions
|
@ -93,6 +93,16 @@ public class Scalar {
|
|||
return signed ? getSignedValue() : value;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@return the value, using the specified signedness. Equivalent to calling getSignedValue()
|
||||
* or getUnsignedValue()}
|
||||
*
|
||||
* @param signednessOverride true for a signed value, false for an unsigned value
|
||||
*/
|
||||
public long getValue(boolean signednessOverride) {
|
||||
return signednessOverride ? getSignedValue() : value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the BigInteger representation of the value.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue