From 219d3e88fb09052c071680c59a5e15e49c5dd4e1 Mon Sep 17 00:00:00 2001 From: p6nj Date: Mon, 11 Nov 2024 15:14:23 -0500 Subject: [PATCH] replace f32 w f64 (supported by fasteval --- src/bng/instrument.rs | 2 +- src/main.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bng/instrument.rs b/src/bng/instrument.rs index af5164f..dce3256 100644 --- a/src/bng/instrument.rs +++ b/src/bng/instrument.rs @@ -13,5 +13,5 @@ use super::Expression as Instruction; pub struct Instrument { #[target] expr: Instruction, - vars: Option>, + vars: Option>, } diff --git a/src/main.rs b/src/main.rs index 5a0fccc..256e7f8 100644 --- a/src/main.rs +++ b/src/main.rs @@ -41,7 +41,7 @@ fn bngfile_generator() -> BngFile { "square".to_string(), Instrument::new( "v*abs(sin(2*PI*f*t))".parse().unwrap(), - Some(HashMap::from([("v".to_string(), 1f32)])), + Some(HashMap::from([("v".to_string(), 1f64)])), ), ), ]),