more castings

Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
Esteban Papp
2021-08-12 18:37:59 -07:00
parent 8b3ab8eb0b
commit 3522f622f3
13 changed files with 37 additions and 33 deletions
@@ -18,7 +18,7 @@ namespace Benchmark
BENCHMARK_DEFINE_F(BM_PrefabUpdateInstances, UpdateInstances_SingeEntityInstances)(::benchmark::State& state)
{
const unsigned int numInstances = state.range();
const unsigned int numInstances = static_cast<unsigned int>(state.range());
CreateFakePaths(2);
const auto& nestedTemplatePath = m_paths.front();
@@ -80,7 +80,7 @@ namespace Benchmark
BENCHMARK_DEFINE_F(BM_PrefabUpdateInstances, UpdateInstances_SingleLinearNestingOfInstances)(::benchmark::State& state)
{
const unsigned int maxDepth = state.range();
const unsigned int maxDepth = static_cast<unsigned int>(state.range());
CreateFakePaths(maxDepth);
const unsigned int numInstances = maxDepth;
@@ -131,8 +131,8 @@ namespace Benchmark
BENCHMARK_DEFINE_F(BM_PrefabUpdateInstances, UpdateInstances_MultipleLinearNestingOfInstances)(::benchmark::State& state)
{
const unsigned int numRootInstances = state.range();
const unsigned int maxDepth = state.range();
const unsigned int numRootInstances = static_cast<unsigned int>(state.range());
const unsigned int maxDepth = static_cast<unsigned int>(state.range());
CreateFakePaths(maxDepth);
const unsigned int numInstances = numRootInstances * maxDepth;
@@ -192,7 +192,7 @@ namespace Benchmark
BENCHMARK_DEFINE_F(BM_PrefabUpdateInstances, UpdateInstances_BinaryTreeNestedInstanceHierarchy)(::benchmark::State& state)
{
const unsigned int maxDepth = state.range();
const unsigned int maxDepth = static_cast<unsigned int>(state.range());
CreateFakePaths(maxDepth);
const unsigned int numInstances = (1 << maxDepth) - 1;