From a178029581f9a19bc7d02e249588f422bc56bbd0 Mon Sep 17 00:00:00 2001 From: mikebenfield Date: Fri, 31 Jan 2025 20:00:20 +0000 Subject: [PATCH] deploy: 0e1f5ab732e15c286cd31a5b69960c3c114f2efe --- index.html | 4 ++-- src/leo_parser/parser/expression.rs.html | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/index.html b/index.html index 33b5d54792..42c2c7d70d 100644 --- a/index.html +++ b/index.html @@ -1,2 +1,2 @@ -Index of crates
- \ No newline at end of file +Index of crates
+ \ No newline at end of file diff --git a/src/leo_parser/parser/expression.rs.html b/src/leo_parser/parser/expression.rs.html index fc32522f38..81ce829436 100644 --- a/src/leo_parser/parser/expression.rs.html +++ b/src/leo_parser/parser/expression.rs.html @@ -1048,7 +1048,7 @@ // If the last operation is a negation and the inner expression is a literal, then construct a negative literal. if let Some((UnaryOperation::Negate, _)) = ops.last() { match inner { - Expression::Literal(Literal::Integer(integer_type, string, span, id)) => { + Expression::Literal(Literal::Integer(integer_type, string, span, id)) if !string.starts_with('-') => { // Remove the negation from the operations. // Note that this unwrap is safe because there is at least one operation in `ops`. let (_, op_span) = ops.pop().unwrap(); @@ -1056,20 +1056,20 @@ inner = Expression::Literal(Literal::Integer(integer_type, format!("-{string}"), op_span + span, id)); } - Expression::Literal(Literal::Field(string, span, id)) => { + Expression::Literal(Literal::Field(string, span, id)) if !string.starts_with('-') => { // Remove the negation from the operations. // Note that let (_, op_span) = ops.pop().unwrap(); // Construct a negative field literal. inner = Expression::Literal(Literal::Field(format!("-{string}"), op_span + span, id)); } - Expression::Literal(Literal::Group(string, span, id)) => { + Expression::Literal(Literal::Group(string, span, id)) if !string.starts_with('-') => { // Remove the negation from the operations. let (_, op_span) = ops.pop().unwrap(); // Construct a negative group literal. inner = Expression::Literal(Literal::Group(format!("-{string}"), op_span + span, id)); } - Expression::Literal(Literal::Scalar(string, span, id)) => { + Expression::Literal(Literal::Scalar(string, span, id)) if !string.starts_with('-') => { // Remove the negation from the operations. let (_, op_span) = ops.pop().unwrap(); // Construct a negative scalar literal.