Skip to content
Snippets Groups Projects
Commit f7596998 authored by Harald Scheirich's avatar Harald Scheirich
Browse files

Fix type conversion in constructor

parent 1ffe2167
No related branches found
No related tags found
No related merge requests found
......@@ -163,6 +163,13 @@ TEST(imstkVecDataArrayTest, Iterators)
}
}
TEST(imstkVecDataArrayTest, constructorCast)
{
VecDataArray<long, 2> a{ Vec2i{1,2}, {3,4} };
EXPECT_EQ(Vec2i(1,2), a[0].cast<int>());
}
int
imstkVecDataArrayTest(int argc, char* argv[])
{
......
......@@ -134,7 +134,7 @@ public:
int j = 0;
for (auto i : list)
{
m_dataCast[j] = i;
m_dataCast[j] = i.cast<T>();
j++;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment