From d7111a3aa811deed34f01c0682ee6fada8978c61 Mon Sep 17 00:00:00 2001 From: Matt Huszagh Date: Thu, 17 Dec 2020 08:04:53 -0800 Subject: [PATCH] dsp/trig: let compiler infer type parameter in atan2 abs call --- dsp/src/trig.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dsp/src/trig.rs b/dsp/src/trig.rs index e306356..51e8b2e 100644 --- a/dsp/src/trig.rs +++ b/dsp/src/trig.rs @@ -25,8 +25,8 @@ pub fn atan2(y: i32, x: i32) -> i32 { let y = y >> 16; let x = x >> 16; - let ux = abs::(x); - let uy = abs::(y); + let ux = abs(x); + let uy = abs(y); // Uses the general procedure described in the following // Mathematics stack exchange answer: