mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-11-28 01:01:53 +03:00
fix error using not operator on mutable boolean
This commit is contained in:
parent
848adfa6dd
commit
2ed5e02de3
@ -138,7 +138,7 @@ impl<F: Field + PrimeField, G: GroupType<F>> ConstrainedProgram<F, G> {
|
||||
|
||||
// Boolean operations
|
||||
Expression::Not(expression, span) => Ok(evaluate_not(
|
||||
self.enforce_expression(cs, file_scope, function_scope, expected_type, *expression)?,
|
||||
self.enforce_operand(cs, file_scope, function_scope, expected_type, *expression, &span)?,
|
||||
span,
|
||||
)?),
|
||||
Expression::Or(left_right, span) => {
|
||||
|
Loading…
Reference in New Issue
Block a user