From 09b44ac68ac7b4bb8791c243f0efc3148edc8289 Mon Sep 17 00:00:00 2001 From: Erik Hofman Date: Mon, 19 Dec 2016 18:37:52 +0100 Subject: [PATCH] MSVC compiler fix (hopefully) --- simgear/math/simd4x4.hxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/simgear/math/simd4x4.hxx b/simgear/math/simd4x4.hxx index 5a755480..26a1c5b4 100644 --- a/simgear/math/simd4x4.hxx +++ b/simgear/math/simd4x4.hxx @@ -112,8 +112,7 @@ inline void post_translate(simd4x4_t& m, const simd4_t& dist) { simd4_t col3(m.ptr()[3]); for (int i=0; i<3; ++i) { - simd4_t trow3(T(dist[i])); - trow3 *= m.ptr()[i]; + simd4_t trow3 = T(dist[i])*m.ptr()[i]; col3 += trow3; } for (int i=0; i<3; ++i) {