mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-10-06 04:59:23 +08:00
Merge remote-tracking branch
'origin/GP-7292_ghidragon_fixed_bug_from_GP-3049' into Ghidra_12.2 (Closes #9651)
This commit is contained in:
+5
@@ -110,6 +110,11 @@ public class FixedSizeIntegerTextField extends AbstractIntegerTextField {
|
||||
minSignedValue = BigInteger.TWO.pow(bitSize - 1).negate();
|
||||
maxSignedValue = BigInteger.TWO.pow(bitSize - 1).subtract(BigInteger.ONE);
|
||||
|
||||
// special case for bitSize == 1, signed makes no sense, so use unsigned min/max for both
|
||||
if (bitSize == 1) {
|
||||
minSignedValue = minUnsignedValue;
|
||||
maxSignedValue = maxUnsignedValue;
|
||||
}
|
||||
BigInteger value = getValue();
|
||||
this.bitSize = bitSize;
|
||||
updateMinMax();
|
||||
|
||||
Reference in New Issue
Block a user