GP-0 corrected CompositeDataType.setStoredPackingValue error check

This commit is contained in:
ghidra1 2022-07-01 16:57:05 -04:00
parent 779f8d8da2
commit cd7599e3b9

View file

@ -343,7 +343,7 @@ public abstract class CompositeDataTypeImpl extends GenericDataType implements C
}
private void setStoredPackingValue(int packingValue) {
if (minimumAlignment < NO_PACKING) {
if (packingValue < NO_PACKING) {
throw new IllegalArgumentException("invalid packing value: " + packingValue);
}
if (packingValue == this.packing) {