From 4845a0790a56495e92ff4c8c75e7b8c8a1f332a3 Mon Sep 17 00:00:00 2001 From: arturo castro Date: Fri, 8 Jan 2016 10:02:06 +0100 Subject: [PATCH] mat_macros: from_homogeneous_impl was using dimension of src not dst --- src/structs/mat_macros.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/structs/mat_macros.rs b/src/structs/mat_macros.rs index d128b998..4c86a9f0 100644 --- a/src/structs/mat_macros.rs +++ b/src/structs/mat_macros.rs @@ -682,8 +682,8 @@ macro_rules! from_homogeneous_impl( fn from(m: &$t2) -> $t { let mut res: $t = ::one(); - for i in 0..$dim2 { - for j in 0..$dim2 { + for i in 0..$dim { + for j in 0..$dim { res[(i, j)] = m[(i, j)] } }