diff options
| author | Lioncash <mathew1800@gmail.com> | 2016-03-30 20:58:55 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2016-03-30 21:00:08 -0400 |
| commit | b3c77fd96a4eb5ada025b3b7937757a3456434bf (patch) | |
| tree | 3805ef8049e0a1cb294f17cf2cf395ed5dd841b1 /Source/UnitTests/VideoCommon/VertexLoaderTest.cpp | |
| parent | 33c22ffab7554802573da60d7cc5655fa90688a3 (diff) | |
VertexLoaderTest: Amend code to fix new warnings in Visual Studio
Fixes warning C4334
Diffstat (limited to 'Source/UnitTests/VideoCommon/VertexLoaderTest.cpp')
| -rw-r--r-- | Source/UnitTests/VideoCommon/VertexLoaderTest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/UnitTests/VideoCommon/VertexLoaderTest.cpp b/Source/UnitTests/VideoCommon/VertexLoaderTest.cpp index 9ca8befc95..fd0b23b0d4 100644 --- a/Source/UnitTests/VideoCommon/VertexLoaderTest.cpp +++ b/Source/UnitTests/VideoCommon/VertexLoaderTest.cpp @@ -221,7 +221,7 @@ TEST_P(VertexLoaderSpeedTest, PositionDirectAll) m_vtx_attr.g0.PosFormat = format; m_vtx_attr.g0.PosElements = elements; elements += 2; - size_t elem_size = 1 << (format / 2); + size_t elem_size = static_cast<size_t>(1) << (format / 2); CreateAndCheckSizes(elements * elem_size, elements * sizeof(float)); for (int i = 0; i < 1000; ++i) RunVertices(100000); @@ -239,7 +239,7 @@ TEST_P(VertexLoaderSpeedTest, TexCoordSingleElement) m_vtx_attr.g0.Tex0CoordFormat = format; m_vtx_attr.g0.Tex0CoordElements = elements; elements += 1; - size_t elem_size = 1 << (format / 2); + size_t elem_size = static_cast<size_t>(1) << (format / 2); CreateAndCheckSizes(2 * sizeof(s8) + elements * elem_size, 2 * sizeof(float) + elements * sizeof(float)); for (int i = 0; i < 1000; ++i) |
