Skip to content
Snippets Groups Projects
Commit 430643ff authored by Mark Jenkinson's avatar Mark Jenkinson
Browse files

Explicit casts to avoid warnings

parent bd15f84c
No related branches found
No related tags found
No related merge requests found
......@@ -106,9 +106,9 @@ int do_work(int argc, char* argv[])
float r2 = r*r;
float h=height.value();
int len=(int) (sqrt(r*r + h*h)) + 1;
int lenx = ceil(len/vsamp.xdim());
int leny = ceil(len/vsamp.ydim());
int lenz = ceil(len/vsamp.zdim());
int lenx = (int) ceil(len/vsamp.xdim());
int leny = (int) ceil(len/vsamp.ydim());
int lenz = (int) ceil(len/vsamp.zdim());
if (verbose.value()) { cerr << "Performing Cylindrical Sampling" << endl; }
for (int z=vsamp.minz(); z<=vsamp.maxz(); z++) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment