From e17726ad0bdf26334c1b6ddcf6eeaca3d1b8e840 Mon Sep 17 00:00:00 2001 From: Robert Maynard Date: Tue, 12 May 2020 09:16:54 -0400 Subject: [PATCH] Correct implicit signed conversion warnings --- examples/cosmotools/CosmoCenterFinder.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/cosmotools/CosmoCenterFinder.cxx b/examples/cosmotools/CosmoCenterFinder.cxx index e6f9df348..0dc638e37 100644 --- a/examples/cosmotools/CosmoCenterFinder.cxx +++ b/examples/cosmotools/CosmoCenterFinder.cxx @@ -38,12 +38,12 @@ void TestCosmoCenterFinder(const char* fileName) } // Read in number of particles and locations - int nParticles; + vtkm::Id nParticles; inFile >> nParticles; - float* xLocation = new float[nParticles]; - float* yLocation = new float[nParticles]; - float* zLocation = new float[nParticles]; + float* xLocation = new float[static_cast(nParticles)]; + float* yLocation = new float[static_cast(nParticles)]; + float* zLocation = new float[static_cast(nParticles)]; std::cout << "Running MBP on " << nParticles << std::endl; for (vtkm::Id p = 0; p < nParticles; p++)