Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brecht@blender.org>2022-01-14 14:28:34 +0300
committerBrecht Van Lommel <brecht@blender.org>2022-01-14 17:17:22 +0300
commitc0d0e2788b062e6268a533de8cebc4af5625bc75 (patch)
treeda807bd752df19533150b7218c97feda89565c55 /source/blender/blenlib
parentba48c1ee581a6514fe558d23a5c63fa8a53ddc5b (diff)
Cleanup: compiler warnings with clang
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r--source/blender/blenlib/tests/BLI_math_vec_types_test.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/blenlib/tests/BLI_math_vec_types_test.cc b/source/blender/blenlib/tests/BLI_math_vec_types_test.cc
index 8aa1f90fde2..c9be404139e 100644
--- a/source/blender/blenlib/tests/BLI_math_vec_types_test.cc
+++ b/source/blender/blenlib/tests/BLI_math_vec_types_test.cc
@@ -38,14 +38,14 @@ TEST(math_vec_types, ScalarConstructorDouble)
TEST(math_vec_types, MultiScalarConstructorVec2)
{
- int2 i(5.5f, -1.8);
+ int2 i(5, -1);
EXPECT_EQ(i[0], 5);
EXPECT_EQ(i[1], -1);
}
TEST(math_vec_types, MultiScalarConstructorVec3)
{
- int3 i(5.5f, -1.8, 6u);
+ int3 i(5, -1, 6u);
EXPECT_EQ(i[0], 5);
EXPECT_EQ(i[1], -1);
EXPECT_EQ(i[2], 6);
@@ -53,7 +53,7 @@ TEST(math_vec_types, MultiScalarConstructorVec3)
TEST(math_vec_types, MultiScalarConstructorVec4)
{
- int4 i(5.5f, -1.8, 6u, 0.888f);
+ int4 i(5, -1, 6u, 0);
EXPECT_EQ(i[0], 5);
EXPECT_EQ(i[1], -1);
EXPECT_EQ(i[2], 6);