mirror of
https://github.com/DanilaFe/abacus
synced 2025-01-02 12:26:12 -08:00
Fix bug causing incorrect parsing of inputs with negative signs.
This commit is contained in:
parent
18e0bdebc5
commit
ac17246317
@ -11,7 +11,7 @@ import org.nwapw.abacus.number.NumberInterface
|
|||||||
*
|
*
|
||||||
* This is a standard operator that negates a number.
|
* 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<out NumberInterface>) =
|
override fun matchesParams(context: PluginEvaluationContext, params: Array<out NumberInterface>) =
|
||||||
params.size == 1
|
params.size == 1
|
||||||
|
Loading…
Reference in New Issue
Block a user