private int getMaxScalarValue() {

		// TODO this code is odd--why calculate the pointer size just to truncate at 
		//      Integer min/max value?  This code should default to no value in the field, letting
		//      the user input min and max values themselves.  Then, just use those values 
		//      directly.

		int defaultPointerSize = program.getDefaultPointerSize();
		int max = (int) Math.pow(2, (defaultPointerSize * 8));

		return filterType == FilterType.MAX ? max : -max;
	}
Returns the maximum value a scalar can have for the current program. This is
used to bound the min/max filters.

@return the max scalar value
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/scalartable/RangeFilterTextField.java