diff --git a/src/cli/main.rs b/src/cli/main.rs index 06ea44a..dd15702 100644 --- a/src/cli/main.rs +++ b/src/cli/main.rs @@ -131,7 +131,10 @@ fn parse_and_compile(opts: &PlayOpts) -> anyhow::Result> { .compile_all(tokens) .inspect(|v| { for sample in v { - assert_ne!(&f64::NAN, sample, "Waiter! There's a NaN in my samples!"); + assert!( + !sample.abs().is_nan(), + "Waiter! There's a NaN in my samples!" + ); } }) .context("Failed to process input tokens")