Commit 8c3baa22 authored by Yanjun Jiang's avatar Yanjun Jiang Committed by Matthew Dawson
Browse files

Fix jTET does not support Boolean comparison bug.

jTET does not support Boolean comparison now, no matter it is
Equals or NotEquals. This is caused by the BooleanType is not
included in the array list for the Equals and NotEquals cases
in the getInputTypeForOutput function. We fix this by adding
the BooleanType in the array list.
parent c9cbb2e4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -53,7 +53,7 @@ public enum BinaryOperation {
                return Arrays.asList(new TypeMarker[]{RealType.Type, FixedPointType.TypeMarker});
            case Equals:
            case NotEquals:
                return Arrays.asList(new TypeMarker[]{RealType.Type, FixedPointType.TypeMarker, EnumerationType.TypeMarker});
                return Arrays.asList(new TypeMarker[]{BooleanType.Type, RealType.Type, FixedPointType.TypeMarker, EnumerationType.TypeMarker});
        }
        return Arrays.asList(new TypeMarker[]{outputType});
    }