commit | f9fd0d9b0492428058eff0ae3151b9c08be94151 | [log] [tgz] |
---|---|---|
author | Nicolas Capens <capn@google.com> | Tue Oct 31 15:36:55 2017 -0400 |
committer | Nicolas Capens <nicolascapens@google.com> | Tue Oct 31 20:24:47 2017 +0000 |
tree | 5109aaa62601f748fee0da3fe999c92f19bb7e62 | |
parent | 3e2b10936c5304477fdadfa233671738008fe154 [diff] |
Fix Visual Studio warning treated as error. Was an implicit narrowing from size_t (64-bit) to unsigned int (32-bit). Change-Id: I9726d70370d97da1bae2652bbce9db929179a292 Reviewed-on: https://swiftshader-review.googlesource.com/13469 Tested-by: Nicolas Capens <nicolascapens@google.com> Reviewed-by: Alexis Hétu <sugoi@google.com>
diff --git a/src/OpenGL/libGLESv2/IndexDataManager.cpp b/src/OpenGL/libGLESv2/IndexDataManager.cpp index 57d7f4b..a32b7d1 100644 --- a/src/OpenGL/libGLESv2/IndexDataManager.cpp +++ b/src/OpenGL/libGLESv2/IndexDataManager.cpp
@@ -261,7 +261,7 @@ } return vertexPerPrimitive; case GL_POINTS: - *primitiveCount = count - restartIndices.size(); + *primitiveCount = static_cast<unsigned int>(count - restartIndices.size()); return 1; default: UNREACHABLE(mode);