mirror of
https://github.com/yuzu-emu/FasTC
synced 2024-11-22 21:34:06 +00:00
More compiler warnings.
This commit is contained in:
parent
33f575685d
commit
caf4864761
1 changed files with 3 additions and 3 deletions
|
@ -57,7 +57,7 @@ static const float kEpsilon = 1e-6f;
|
||||||
|
|
||||||
TEST(VectorBase, Constructors) {
|
TEST(VectorBase, Constructors) {
|
||||||
FasTC::VectorBase<float, 3> v3f;
|
FasTC::VectorBase<float, 3> 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<double, 1> v1d;
|
FasTC::VectorBase<double, 1> v1d;
|
||||||
v1d[0] = 1.1;
|
v1d[0] = 1.1;
|
||||||
FasTC::VectorBase<int, 7> v7i;
|
FasTC::VectorBase<int, 7> v7i;
|
||||||
|
@ -143,8 +143,8 @@ TEST(VectorBase, DotProduct) {
|
||||||
unsigned uv[5] = { 1, 2, 3, 4, 5 };
|
unsigned uv[5] = { 1, 2, 3, 4, 5 };
|
||||||
FasTC::VectorBase<unsigned, 5> v5u(uv);
|
FasTC::VectorBase<unsigned, 5> v5u(uv);
|
||||||
|
|
||||||
EXPECT_EQ(v5i.Dot(v5u), 10);
|
EXPECT_EQ(v5i.Dot(v5u), static_cast<int>(10));
|
||||||
EXPECT_EQ(v5u.Dot(v5i), 10);
|
EXPECT_EQ(v5u.Dot(v5i), static_cast<unsigned>(10));
|
||||||
|
|
||||||
EXPECT_EQ(v5i * v5u, 10);
|
EXPECT_EQ(v5i * v5u, 10);
|
||||||
EXPECT_EQ(v5u * v5i, 10);
|
EXPECT_EQ(v5u * v5i, 10);
|
||||||
|
|
Loading…
Reference in a new issue