diff --git a/Base/test/TestVector.cpp b/Base/test/TestVector.cpp index 1d594f1..6036263 100644 --- a/Base/test/TestVector.cpp +++ b/Base/test/TestVector.cpp @@ -57,7 +57,7 @@ static const float kEpsilon = 1e-6f; TEST(VectorBase, Constructors) { FasTC::VectorBase v3f; - v3f[0] = 1.1f; v3f[1] = 1.2f; v3f[2] = 1.3; + v3f[0] = 1.1f; v3f[1] = 1.2f; v3f[2] = 1.3f; FasTC::VectorBase v1d; v1d[0] = 1.1; FasTC::VectorBase v7i; @@ -143,8 +143,8 @@ TEST(VectorBase, DotProduct) { unsigned uv[5] = { 1, 2, 3, 4, 5 }; FasTC::VectorBase v5u(uv); - EXPECT_EQ(v5i.Dot(v5u), 10); - EXPECT_EQ(v5u.Dot(v5i), 10); + EXPECT_EQ(v5i.Dot(v5u), static_cast(10)); + EXPECT_EQ(v5u.Dot(v5i), static_cast(10)); EXPECT_EQ(v5i * v5u, 10); EXPECT_EQ(v5u * v5i, 10);