diff --git a/Cargo.lock b/Cargo.lock index 855ef27..6ba14d1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -28,7 +28,7 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" [[package]] name = "daisycalc" -version = "1.1.3" +version = "1.1.4" dependencies = [ "cfg-if", "num", diff --git a/Cargo.toml b/Cargo.toml index 3dc7b41..cbe1259 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "daisycalc" -version = "1.1.3" +version = "1.1.4" edition = "2021" build = "buildscript/main.rs" license = "GPL-3.0-only" diff --git a/src/evaluate/operator.rs b/src/evaluate/operator.rs index 0851212..22c61cd 100644 --- a/src/evaluate/operator.rs +++ b/src/evaluate/operator.rs @@ -19,6 +19,7 @@ pub fn eval_operator(context: &mut Context, g: &Expression) -> Result Result Result { + r.set_linelocation(&args_ll); + return Ok(Some(r)); + }, + + Err( (_, err) ) => { + return Err((args_ll, err)); + } + } }, Operator::Negative => {