GP-3278 fix DWARF enum signedness

This commit is contained in:
dev747368 2023-03-31 17:55:10 +00:00
parent 02e547dac9
commit 837061b329
4 changed files with 75 additions and 23 deletions

View file

@ -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.
*