From ac17246317ceffc8dd62d9e3549afab6a748a3de Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Tue, 30 Jan 2018 21:10:02 -0800 Subject: [PATCH] Fix bug causing incorrect parsing of inputs with negative signs. --- .../org/nwapw/abacus/plugin/standard/operator/OperatorNegate.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/kotlin/org/nwapw/abacus/plugin/standard/operator/OperatorNegate.kt b/core/src/main/kotlin/org/nwapw/abacus/plugin/standard/operator/OperatorNegate.kt index cc50e31..8f2ea07 100644 --- a/core/src/main/kotlin/org/nwapw/abacus/plugin/standard/operator/OperatorNegate.kt +++ b/core/src/main/kotlin/org/nwapw/abacus/plugin/standard/operator/OperatorNegate.kt @@ -11,7 +11,7 @@ import org.nwapw.abacus.number.NumberInterface * * This is a standard operator that negates a number. */ -class OperatorNegate: NumberOperator(OperatorAssociativity.LEFT, OperatorType.UNARY_PREFIX, 0) { +class OperatorNegate: NumberOperator(OperatorAssociativity.LEFT, OperatorType.UNARY_PREFIX, 1) { override fun matchesParams(context: PluginEvaluationContext, params: Array) = params.size == 1