From 20b4e159edb54cecb8abdedb187ba05a869b3bf0 Mon Sep 17 00:00:00 2001 From: Eduard Burtescu Date: Thu, 6 Mar 2014 19:24:11 +0200 Subject: Implement automatic overloaded dereference. Closes #7141. --- src/libnum/complex.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libnum') diff --git a/src/libnum/complex.rs b/src/libnum/complex.rs index 5ffd23aa346..b226e773dbb 100644 --- a/src/libnum/complex.rs +++ b/src/libnum/complex.rs @@ -101,7 +101,7 @@ impl Cmplx { /// Convert a polar representation into a complex number. #[inline] pub fn from_polar(r: &T, theta: &T) -> Cmplx { - Cmplx::new(r * theta.cos(), r * theta.sin()) + Cmplx::new(*r * theta.cos(), *r * theta.sin()) } } -- cgit 1.4.1-3-g733a5