mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-16 17:22:55 +00:00
Correct implicit signed conversion warnings
This commit is contained in:
parent
990ae4b9a6
commit
e17726ad0b
@ -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<std::size_t>(nParticles)];
|
||||
float* yLocation = new float[static_cast<std::size_t>(nParticles)];
|
||||
float* zLocation = new float[static_cast<std::size_t>(nParticles)];
|
||||
std::cout << "Running MBP on " << nParticles << std::endl;
|
||||
|
||||
for (vtkm::Id p = 0; p < nParticles; p++)
|
||||
|
Loading…
Reference in New Issue
Block a user